sqltypetolua: Assertion `0' failed
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: sqltypetolua: Assertion `0' failed
- From: Юрий Насида <yurazilot1@...>
- Date: 2010年6月04日 12:08:37 +0400
Hello
I am trying to use the luasql to connect to a mysql through ODBC
I get an ASSERT at line 163 of ls_odbc.c
"lua: src/ls_odbc.c:163: sqltypetolua: Assertion `0' failed.
Aborted"
Please help me solve this issue.
--------------
Linux freeswitch1 2.6.32-gentoo-r7 #1 SMP Fri May 7 17:47:36 MSD 2010 x86_64 Pentium(R) Dual-Core CPU E6500 @ 2.93GHz GenuineIntel GNU/Linux
My simple script:
require "luasql.odbc"
env = assert(luasql.odbc())
con = assert (env:connect("testbase_odbc","testbase","passwd" )
cur = assert(con:execute("SELECT * FROM tg;" )
row = cur:fetch({}, "a"
if row == nil then
print("rez1"
else
print(row.tg_def_cli)
end
cur:close()
con:close()
env:close()