db_li and a postgres setup on not english language [message #24180] |
Tue, 19 April 2005 11:37  |
ngockhoi
 Messages: 15 Registered: July 2003 Location: Paris
Karma: 0
|
Junior Member |
|
|
Hi all,
There's a special mysql keyword "ON DUPLICATE KEY UPDATE" is use and the db_li get a sql_error event :
if (strpos($err, 'duplicate key') !== false) {
$ef = ltrim(strrchr($err, ' '));
return null;
} else {
die(fud_sql_error_handler($q, pg_last_error(fud_sql_lnk), '', get_version()));
}
But Postgresql for any langage (french for me) is not the same error message 'duplicate key'.
Regards,
|
|
|
|
Re: db_li and a postgres setup on not english language [message #28098 is a reply to message #24183] |
Tue, 11 October 2005 12:49   |
ngockhoi
 Messages: 15 Registered: July 2003 Location: Paris
Karma: 0
|
Junior Member |
|
|
Sorry for my english,
This code (db_li) don't work with postgresql setup on French or other language.
if (strpos($err, 'duplicate key') !== false) {
$ef = ltrim(strrchr($err, ' '));
return null;
} else {
die(fud_sql_error_handler($q, pg_last_error(fud_sql_lnk), '', get_version()));
}
Because on french the error message of postgresql don't have the "duplicate key" words
Regards,
[Updated on: Tue, 11 October 2005 12:49] Report message to a moderator
|
|
|
|
|
|
|
|