Subject: ODBC danish windows inserting wrong boolean. 2007-08-21 - By Linda Pedersen
Back
I just reinstalled my pc its running danish win xp as it was before.
My application is in VB6 it connects to mysql on the same pc using myodbc. All this worked fine before the new install.
now im getting the following error:
SQL MSG:[MYDB.EXECUTE_CMD] (-2147217900) [MySQL][ODBC 3.51 Driver][mysqld-5 (See http://qld-5.ora-code.com).0.45-community-nt]Unknown column 'Falsk' in 'field list' SQL ERROR:insert into que (action,commands,que_id,sandbox,comment,requested_by,submited) values ('NPC','\"Count\" Ungula',18285,Falsk,'NPC_requests:18285','Laurlybot',now())
If i print out the variable in visual basic it says its "false" yet when it tryst to insert it into the database it uses the word "falsk" which in danish is "false" how do i get it to use the English spelling? This is probably has to do with why i cant insert dates into the database either as it trys to use the danish format (DD-MM-YYYY) for those by default instead of mysqls default of YYYY-MM-DD.My application is rather large and i would rather not have to change all the boolean variables to something like tinyint storing 1 and 0.Thanks Linda __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ Make every IM count. Download Windows Live Messenger and join the i?m Initiative now. It?s free.? http://im.live.com/messenger/im/home/?source=TAGWL_June07
|
|