Closed df7cb closed 7 years ago
Do you know which flavor of Lua it is using? 5.1, luajit or something else?
5.1 - should have included that in the initial report...
postgres int8 <-> lua int64 is broken, and I´m not sure how to fix it. What I see here :
case INT8OID:{
elog(INFO,"[pllua]: result = %lld", get64lua(L, idx));
dat = Int64GetDatum(get64lua(L, idx));
break;
}
SELECT echo_int8('1234567890');
INFO: [pllua]: result = 1234567890 but the output is : echo_int 89187201950435737471
PG's int8 is pass-by-reference on 32 bit - get_int64(lua_State *L, int index)
doesn't seem to take this into account.
Added fix for int8, looks like it works for ubuntu 32, but I haven't checked it with debian.
checked for debian 32
Thanks! Pushed updated packages to Debian and apt.postgresql.org.
Hi, pllua seems completely broken on 32bit, e.g. on Debian sid/i386: