fixed get_max_parameter_id() (see http://www.sqlite.org/limits.html at 9.)

This commit is contained in:
Martin Müllenhaupt 2012-11-06 11:59:26 +01:00
parent cd6494547e
commit 42cdbe6732
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ namespace dlib
unsigned long get_max_parameter_id (
) const
{
return SQLITE_LIMIT_VARIABLE_NUMBER;
return sqlite3_limit(db.get(), SQLITE_LIMIT_VARIABLE_NUMBER, -1);
}
unsigned long get_parameter_id (