arcapos / luapgsql

Lua binding for PostgreSQL
108 stars 24 forks source link

Missing braces in conn_prepare #20

Closed geoffleyland closed 9 years ago

geoffleyland commented 9 years ago

It looks like lines 504-508 in luapgsql.c should be:

for (n = 0, sqlParams = 0; n < nParams; n++) {
    get_sql_params(L, 4 + n, sqlParams, NULL, NULL, NULL, NULL,
        &count);
    sqlParams += count;
}

(that is, the curly braces are missing)

mbalmer commented 9 years ago

Fixed, also in some more locations, sigh... Thanks!