| Index: sql/statement.cc
|
| diff --git a/sql/statement.cc b/sql/statement.cc
|
| index fd73b0f588561f235d77d82529574ae7e16be05d..a5daae49a6029f97b0950d4773a840cd5ac222cc 100644
|
| --- a/sql/statement.cc
|
| +++ b/sql/statement.cc
|
| @@ -256,6 +256,11 @@ const char* Statement::GetSQLStatement() {
|
| }
|
|
|
| bool Statement::CheckOk(int err) const {
|
| + // Binding to a non-existent variable is evidence of a serious error.
|
| + // TODO(gbillock,shess): make this invalidate the statement so it
|
| + // can't wreak havoc.
|
| + if (err == SQLITE_RANGE)
|
| + DLOG(FATAL) << "Bind value out of range";
|
| return err == SQLITE_OK;
|
| }
|
|
|
|
|