[Gambas-user] Is there a limit for MySQL-Connections?
Benoit Minisini
gambas at ...1...
Fri Oct 28 21:00:02 CEST 2005
On Tuesday 25 October 2005 11:45, Alex Ciric wrote:
> Hello Nigel,
>
> thanks for your answer. In the meantime i solved that problem by making
> more instances of my sql-class.
>
> Here is my code of that class:
> ------------------------------
> ' Gambas class file
> STATIC sql_open AS Boolean
> STATIC conn AS NEW Connection
conn is static, and so there is ONE conn variable for each instance of this
class.
> PUBLIC authenticated AS String 'THIS MAKES PROBLEMS
If you remove it, then your class has only static variables. Gambas then
raises an error if you try to instanciate it, as it find stupid having an
object with *no* dynamic field.
Regards,
--
Benoit Minisini
More information about the User
mailing list