[SR-Users] db_mysql errors
jaflong jaflong
jaflong at yandex.com
Thu Feb 26 00:45:55 CET 2015
I am getting errors when I run the following code
if (sql_xquery("mydb", "select * from account where account = 'demo'", "res") == 1) {
xlog("L_INFO", "my number: $xavp(res=>number)\n");
} else {
xlog("L_WARN", "Connection forbidden from $si\n");
sl_send_reply("403", "Forbidden");
exit;
}
sql_result_free("res");
}
10(4033) ERROR: <core> [db_ut.c:225]: db_str2time(): Error during time conversion
10(4033) ERROR: <core> [db_val.c:159]: db_str2val(): error while converting datetime value from string
10(4033) ERROR: db_mysql [km_row.c:68]: db_mysql_convert_row(): failed to convert value
10(4033) ERROR: db_mysql [km_res.c:190]: db_mysql_convert_rows(): error while converting row #0
10(4033) ERROR: db_mysql [km_res.c:219]: db_mysql_convert_result(): error while converting rows
10(4033) ERROR: db_mysql [km_dbase.c:252]: db_mysql_store_result(): error while converting result
10(4033) ERROR: <core> [db_query.c:188]: db_do_raw_query(): error while storing result10(4033) ERROR: sqlops [sql_api.c:454]: sql_exec_xquery(): cannot do the query
Any help please
More information about the sr-users
mailing list