Hi guys,

I have a question about DBDatabase.open() method. It sets the driver for
the db and calls the driver's attachDatabase method which in most cases
does nothing . But in case of MSSQL and MySql driver it executes some
initialization SQL (*). We use a connection pool and a singleton DBDatabase
instance, which is opened only once when the app is initialized. So this
initialization script is executed only for the first connection.

So what is the purpose of this initialization SQL? Is it necessary, and if
yes, in case of a connection pool the DBDatabase should be open for every
new connection?

Regards,
Ivan

* it sets the database to use (USE DATABASE...) and the date format

Reply via email to