# HG changeset patch # User nrich@ii.net # Date 1234498031 0 # Node ID 44b1d78b50f568352c2113f5164532e6db4e579c # Parent 1d2369ebee214bf1e2967b5c2c929cbbbb769de3 Clean up comments. diff -r 1d2369ebee21 -r 44b1d78b50f5 dbd/common.c --- 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++); diff -r 1d2369ebee21 -r 44b1d78b50f5 dbd/db2/statement.c --- 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);