Skip to content

Commit

Permalink
disambiguate
Browse files Browse the repository at this point in the history
  • Loading branch information
mbalmer committed Jan 29, 2016
1 parent bc19701 commit 328f6cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luapgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,14 @@ get_sql_params(lua_State *L, int t, int n, Oid *paramTypes, char **paramValues,
n = 1;
break;
case LUA_TNUMBER:
if (paramTypes != NULL)
if (paramTypes != NULL) {
#if LUA_VERSION_NUM >= 503
if (lua_isinteger(L, t))
paramTypes[n] = INT8OID;
else
#endif
paramTypes[n] = FLOAT8OID;
}
if (paramValues != NULL) {
union {
double v;
Expand Down

0 comments on commit 328f6cb

Please sign in to comment.