Fri, 13 Feb 2009 04:07:11 +0000
Clean up comments.
dbd/common.c | file | annotate | diff | comparison | revisions | |
dbd/db2/statement.c | file | annotate | diff | comparison | revisions |
--- a/dbd/common.c Mon Dec 22 07:52:04 2008 +0000 +++ b/dbd/common.c Fri Feb 13 04:07:11 2009 +0000 @@ -12,8 +12,8 @@ } /* - * replace '?' placeholders with $\d+ placeholders - * to be compatible with PSQL API + * replace '?' placeholders with {native_prefix}\d+ placeholders + * to be compatible with native API */ char *replace_placeholders(lua_State *L, char native_prefix, const char *sql) { size_t len = strlen(sql); @@ -76,7 +76,7 @@ size_t n; if (ph_num > MAX_PLACEHOLDERS) { - luaL_error(L, "Sorry, you are using more than %d placeholders. Use ${num} format instead", MAX_PLACEHOLDERS); + luaL_error(L, "Sorry, you are using more than %d placeholders. Use %c{num} format instead", MAX_PLACEHOLDERS, native_prefix); } n = snprintf(&newsql[newpos], MAX_PLACEHOLDER_SIZE, format_str, ph_num++);
--- a/dbd/db2/statement.c Mon Dec 22 07:52:04 2008 +0000 +++ b/dbd/db2/statement.c Fri Feb 13 04:07:11 2009 +0000 @@ -50,7 +50,7 @@ statement_t *statement = (statement_t *)luaL_checkudata(L, 1, DBD_DB2_STATEMENT); if (statement->stmt) { - SQLFreeStmt(statement->stmt, SQL_CLOSE); + SQLFreeHandle(SQL_HANDLE_STMT, statement->stmt); if (statement->resultset) { free(statement->resultset);