Error Column with name "Extra" not found => SOL
Posted: 10.04.2008, 12:22
subject: Error Column with name "Extra" not found on
<<< SOLUTION has been added at end of this msg >>>
First, and most important
All my gratitude and thanks for a wonderful package. As soon as I will be able to make it work, it will be great. It is obvious that you and your team has put a lot of work and time in it.
And many thanks for your quick and successful help
My context
- Win XP SP2 up to date
- D2007-win32
- zeos 6.2.2rc
- MySQL 5.1.23rc community
- mysql.dll latest version 5.1.33 in path as local server
- database exists and connection is ok
- tablename and accessed ok via MySQL browser/Admin
my problem
- When UNDER IDE (in design OR run mode)
1. component TZConnect to an existing database on a blank form
2 - property 'connect' set to 'true' => no problem
3. TZTable to an existing table
3. or TZQUERY with sql='SELECT fieldname FROM tablename".
with fieldname NOT equal to '*', but to an existing fieldname.
4. setting property 'active' to TRUE
==> displays under IDE from IDE:
Error: Column with name "Extra" not found
5. OR creating a "table connect" button to set this property to TRUE
6. Run (F9) under the IDE, to debug, and press "table connect" button
==> displays same error:
Error: Column with name "Extra" not found
7. BUT when lauching the compiled EXE from OUTSIDE IDE
=> No problem. Connection is active, and a more complete form will display all the records of the table.
8. Creating a field named "Extra" in the table does NOT suppress the error.
This error occurs in all tables of all my MySQL databases (including
your example).
I am quite baffled.
I hope that you can help me there since being able to link to data
from inside the IDE is very useful
The line where the message is created and displayed is easy to find, but the reason why the program is looking for the column "Extra", and only under IDE mode is much more complicated to understand.
Here is the traceback of the error, which I hope will help you.
the program itself is really minimal, with just your two components on a blank form, and a database standard connection parameters.
You can call me stupid if my mistake is obvious and you can correct it easily. I looked in your documentation before posting this msg, but could not find any information about this error. I hope you can find the mistake.
==============================================
THE SOLUTION
Thanks again for the quick tip offered by zeos support team:
My mistake:
I was using the latest libMySQL.dll from MySQL installation. This was what created the problem.
What I should have done:
I should have used the libMySQL50.dll provided by zeoslib
It can be found in the SVN library, at address
http://zeosdownloads.firmos.at/downloads/snapshots/
The programmer must download the latest library, in my case:
ZEOSLIB_TRUNK_REV361 of 2008-04-08.zip
In this zip file, find the relevant driver(s). In my case:
\lib\mysql\libmySQL50.dll
Install in executable path. In the iDE, for ZConnection, chose driver=MySQL50
=> Miracle ! => everything works perfectly under IDE design AND run mode, AND EXE file outside IDE.
two remarks:
1.
since libMySQL50.dll is installed, it is not in contradiction with the installation of the most recent libMySQL.dll in the same path. (Just tested)
2.
The versions displayed with a NOT working mode are:
ZConnection.ClientVersion => 5.1.23
ZConnection.ServerVersion => 5.1.23
The versions now displayed with a WORKING system are:
ZConnection.ClientVersion => 5.0.22
ZConnection.ServerVersion => 5.1.23
This might incur some restrictions about using specific 5.1 orders, but I don't believe so, at least until Zeos creates some MySQL orders specific to 5.1, directly accessible.
I suggest to the zeos team to include this (in certainly a shorter form) in the general FAQ, for crazy mistakes, for whoch the answer is not so obvious.
And, once again, many thanks to
- mdaems, for his quick help
- the whole zeos team, for their great creation.
<<< SOLUTION has been added at end of this msg >>>
First, and most important
All my gratitude and thanks for a wonderful package. As soon as I will be able to make it work, it will be great. It is obvious that you and your team has put a lot of work and time in it.
And many thanks for your quick and successful help
My context
- Win XP SP2 up to date
- D2007-win32
- zeos 6.2.2rc
- MySQL 5.1.23rc community
- mysql.dll latest version 5.1.33 in path as local server
- database exists and connection is ok
- tablename and accessed ok via MySQL browser/Admin
my problem
- When UNDER IDE (in design OR run mode)
1. component TZConnect to an existing database on a blank form
2 - property 'connect' set to 'true' => no problem
3. TZTable to an existing table
3. or TZQUERY with sql='SELECT fieldname FROM tablename".
with fieldname NOT equal to '*', but to an existing fieldname.
4. setting property 'active' to TRUE
==> displays under IDE from IDE:
Error: Column with name "Extra" not found
5. OR creating a "table connect" button to set this property to TRUE
6. Run (F9) under the IDE, to debug, and press "table connect" button
==> displays same error:
Error: Column with name "Extra" not found
7. BUT when lauching the compiled EXE from OUTSIDE IDE
=> No problem. Connection is active, and a more complete form will display all the records of the table.
8. Creating a field named "Extra" in the table does NOT suppress the error.
This error occurs in all tables of all my MySQL databases (including
your example).
I am quite baffled.
I hope that you can help me there since being able to link to data
from inside the IDE is very useful
The line where the message is created and displayed is easy to find, but the reason why the program is looking for the column "Extra", and only under IDE mode is much more complicated to understand.
Here is the traceback of the error, which I hope will help you.
the program itself is really minimal, with just your two components on a blank form, and a database standard connection parameters.
You can call me stupid if my mistake is obvious and you can correct it easily. I looked in your documentation before posting this msg, but could not find any information about this error. I hope you can find the mistake.
==============================================
THE SOLUTION
Thanks again for the quick tip offered by zeos support team:
My mistake:
I was using the latest libMySQL.dll from MySQL installation. This was what created the problem.
What I should have done:
I should have used the libMySQL50.dll provided by zeoslib
It can be found in the SVN library, at address
http://zeosdownloads.firmos.at/downloads/snapshots/
The programmer must download the latest library, in my case:
ZEOSLIB_TRUNK_REV361 of 2008-04-08.zip
In this zip file, find the relevant driver(s). In my case:
\lib\mysql\libmySQL50.dll
Install in executable path. In the iDE, for ZConnection, chose driver=MySQL50
=> Miracle ! => everything works perfectly under IDE design AND run mode, AND EXE file outside IDE.
two remarks:
1.
since libMySQL50.dll is installed, it is not in contradiction with the installation of the most recent libMySQL.dll in the same path. (Just tested)
2.
The versions displayed with a NOT working mode are:
ZConnection.ClientVersion => 5.1.23
ZConnection.ServerVersion => 5.1.23
The versions now displayed with a WORKING system are:
ZConnection.ClientVersion => 5.0.22
ZConnection.ServerVersion => 5.1.23
This might incur some restrictions about using specific 5.1 orders, but I don't believe so, at least until Zeos creates some MySQL orders specific to 5.1, directly accessible.
I suggest to the zeos team to include this (in certainly a shorter form) in the general FAQ, for crazy mistakes, for whoch the answer is not so obvious.
And, once again, many thanks to
- mdaems, for his quick help
- the whole zeos team, for their great creation.