Sign in Join

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

Mailing lists / fpc-devel / 2004-09

Re: mysql error when compiling latest CVS

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt
to ales: I get this with latest CVS: Compiling /home/ales/fpc/packages/base/mysql/mysql.pp…
ales wrote 12 lines
I get this with latest CVS: Compiling /home/ales/fpc/packages/base/mysql/mysql.pp mysqldb.pp(241,30) Error: Illegal qualifier mysqldb.pp(241,24) Error: Operator is not overloaded mysqldb.pp(241,30) Fatal: Syntax error, "THEN" expected but "identifier NAME" found Have found out probably buggy declaration in mysql unit: MYSQL_FIELD = st_mysql_field; TMYSQL_FIELD = ^MYSQL_FIELD; <-- should probably be MYSQL_FIELD PMYSQL_FIELD = ^MYSQL_FIELD;

It is a known problem. A fix exists, and will be committed tonight.

However:
excpect to have to rework a lot of code when you use the mysql unit directly.

The version was upgraded to version 4.0, and this is significantly different from 3.x

Michael.

Reply by email

ales

I get this with latest CVS:

Compiling /home/ales/fpc/packages/base/mysql/mysql.pp
mysqldb.pp(241,30) Error: Illegal qualifier
mysqldb.pp(241,24) Error: Operator is not overloaded
mysqldb.pp(241,30) Fatal: Syntax error, "THEN" expected but "identifier
NAME" found
Have found out probably buggy declaration in mysql unit:
       MYSQL_FIELD = st_mysql_field;
       TMYSQL_FIELD = ^MYSQL_FIELD; <-- should probably be MYSQL_FIELD
       PMYSQL_FIELD = ^MYSQL_FIELD;

However changing it will produce other errors.
Note that this bug is cross-platform ;)

Ales

Reply by email