Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-08

TSQLDBLibraryLoader committed for SQLDB

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

After recent discussions about which library to load when loading DB client libraries, I changed the default names for Firebird, MySQL, Postgres.

araminta: >./loadlibdemo list
Available connection types:
Firebird, Default library name: libfbclient.so.2.5 MySQL 4.0, Default library name: libmysqlclient.so.12 MySQL 4.1, Default library name: libmysqlclient.so.14 MySQL 5.0, Default library name: libmysqlclient.so.15 MySQL 5.1, Default library name: libmysqlclient.so.16 MySQL 5.5, Default library name: libmysqlclient.so.18 PostGreSQL, Default library name: libpq.so.5

I also committed a component that allows you to select the library to load in the IDE. There is a small test program in fcl-db/examples that shows how to use the component.

(In the IDE: drop, set connector type from picklist, maybe change library name, set to enabled).

The above listing is the output of the test program.

The component is registered now in the SQLDb package.

Note that the use of the component is optional. It's only needed if you want to change the library name to something else as the default.

Michael.

Reply by email

Reinier Olislagers
to Michael Van Canneyt
Michael Van Canneyt wrote
Hi, After recent discussions about which library to load when loading DB client libraries, I changed the default names for Firebird, MySQL, Postgres.

<snip>

Show quoted text 7 lines
The component is registered now in the SQLDb package. Note that the use of the component is optional. It's only needed if you want to change the library name to something else as the default. Michael.

Thanks Michael,

Laz failed to compile for me with errors in registersqldb. Please see patch that fixes this in
http://bugs.freepascal.org/view.php?id=22690

Thanks,
Reinier

Reply by email

Reinier Olislagers
to Reinier Olislagers
Reinier Olislagers wrote 23 lines
On 21-8-2012 22:10, Michael Van Canneyt wrote: > Hi, > > After recent discussions about which library to load when loading DB client > libraries, I changed the default names for Firebird, MySQL, Postgres. <snip> > The component is registered now in the SQLDb package. > > Note that the use of the component is optional. It's only needed if you > want > to change the library name to something else as the default. > > Michael. Thanks Michael, Laz failed to compile for me with errors in registersqldb. Please see patch that fixes this in http://bugs.freepascal.org/view.php?id=22690 Thanks, Reinier

Zeljan had already fixed it - thanks Zeljan ;)

Reinier

Reply by email

Howard Page-Clark
to Héctor F. Fiandor Rosario: Dear fellows: I am using SQLite3 for an application and I have a problem. I need to use a…
H?ctor F. Fiandor Rosario wrote 5 lines
Dear fellows: I am using SQLite3 for an application and I have a problem. I need to use a table in an unit that don?t has a form -is a unit for ReadWrite procedures- and I can?t place the DataAccess for SQLite icom. Please, in this cases, what to do?

Please do two things:
1 As has been requested of you several times, find out how to use your email client so that you can start a new thread for your questions, and not interrupt another thread every time.
2 Use a TDataModule for your table (File -> New -> Data Module), or create it in code by calling its constructor.

Reply by email

Héctor F. Fiandor Rosario
to Reinier Olislagers: Zeljan had already fixed it - thanks Zeljan ;) Reinier

Dear fellows:

I am using SQLite3 for an application and I have a problem.

I need to use a table in an unit that don?t has a form -is a unit for ReadWrite procedures- and I can?t place the DataAccess for SQLite icom.

Please, in this cases, what to do?

Thanks in advance,

yours truly,

Ing. H?ctor F. Fiandor Rosario

Earlier message 37 lines
----- Original Message ----- From: Reinier Olislagers To: Lazarus mailing list Sent: Tuesday, August 21, 2012 8:36 PM Subject: Re: [Lazarus] TSQLDBLibraryLoader committed for SQLDB On 22-8-2012 10:02, Reinier Olislagers wrote: > On 21-8-2012 22:10, Michael Van Canneyt wrote: >> Hi, >> >> After recent discussions about which library to load when loading DB client >> libraries, I changed the default names for Firebird, MySQL, Postgres. > <snip> >> The component is registered now in the SQLDb package. >> >> Note that the use of the component is optional. It's only needed if you >> want >> to change the library name to something else as the default. >> >> Michael. > > Thanks Michael, > > Laz failed to compile for me with errors in registersqldb. > Please see patch that fixes this in > http://bugs.freepascal.org/view.php?id=22690 > > Thanks, > Reinier > Zeljan had already fixed it - thanks Zeljan ;) Reinier --

Reply by email