private BindParameters ( IronPython.Runtime.CodeContext context, IDictionary args, int num_params_needed ) : void | ||
context | IronPython.Runtime.CodeContext | |
args | IDictionary | |
num_params_needed | int | |
return | void |
internal int Recompile(CodeContext context, object parameters) { sqlite3_stmt new_st = null; string tail = null; int rc = Sqlite3.sqlite3_prepare(this.db, this.sql, -1, ref new_st, ref tail); if (rc == Sqlite3.SQLITE_OK) { Statement new_stmt = new Statement(this.st.db, new_st, this.sql, tail); new_stmt.BindParameters(context, parameters); Sqlite3.sqlite3_finalize(this.st); this.st = new_st; } return(rc); }
internal int Recompile(CodeContext context, object parameters) { sqlite3_stmt new_st = null; string tail = null; int rc = Sqlite3.sqlite3_prepare(this.db, this.sql, -1, ref new_st, ref tail); if(rc == Sqlite3.SQLITE_OK) { Statement new_stmt = new Statement(this.st.db, new_st, this.sql, tail); new_stmt.BindParameters(context, parameters); Sqlite3.sqlite3_finalize(this.st); this.st = new_st; } return rc; }