mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Db: Fixed octave field missing when opening databases prior to 0.12
This commit is contained in:
@@ -5129,8 +5129,11 @@ void DBDriverSqlite3::stepKeypoint(sqlite3_stmt * ppStmt,
|
|||||||
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
||||||
rc = sqlite3_bind_double(ppStmt, index++, kp.response);
|
rc = sqlite3_bind_double(ppStmt, index++, kp.response);
|
||||||
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
||||||
|
if(uStrNumCmp(_version, "0.12.0") >= 0)
|
||||||
|
{
|
||||||
rc = sqlite3_bind_int(ppStmt, index++, kp.octave);
|
rc = sqlite3_bind_int(ppStmt, index++, kp.octave);
|
||||||
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
||||||
|
}
|
||||||
rc = sqlite3_bind_double(ppStmt, index++, pt.x);
|
rc = sqlite3_bind_double(ppStmt, index++, pt.x);
|
||||||
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
UASSERT_MSG(rc == SQLITE_OK, uFormat("DB error (%s): %s", _version.c_str(), sqlite3_errmsg(_ppDb)).c_str());
|
||||||
rc = sqlite3_bind_double(ppStmt, index++, pt.y);
|
rc = sqlite3_bind_double(ppStmt, index++, pt.y);
|
||||||
|
|||||||
Reference in New Issue
Block a user