Skip to content
Snippets Groups Projects
Commit 2420040b authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Kirill Yukhin
Browse files

sql: replace column_int with column_int64

Big numvers return from sql to lua as double or as long long depending on it's
size (wheather it fit into mantisa or not)
Remember, in tarantool you can create variable of type long long using LL
postfix (ex: 1235453452343LL)

closes #2469
parent 3224fed7
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ lua_push_row(struct lua_State *L, struct prep_stmt_list *l)
switch (type) {
case SQLITE_INTEGER:
typestr[i] = 'i';
lua_pushinteger(L, sqlite3_column_int(stmt, i));
luaL_pushint64(L, sqlite3_column_int64(stmt, i));
break;
case SQLITE_FLOAT:
typestr[i] = 'f';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment