mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
don't match on empty devID
This commit is contained in:
parent
a522266ce4
commit
2060aa4577
1 changed files with 1 additions and 1 deletions
|
@ -820,7 +820,7 @@ DBMgr::getDevID( const DevID* devID )
|
||||||
const char* fmt = "SELECT id FROM " DEVICES_TABLE " WHERE id=%d";
|
const char* fmt = "SELECT id FROM " DEVICES_TABLE " WHERE id=%d";
|
||||||
string_printf( query, fmt, cur );
|
string_printf( query, fmt, cur );
|
||||||
}
|
}
|
||||||
} else {
|
} else if ( 0 < devID->m_devIDString.size() ) {
|
||||||
const char* fmt = "SELECT id FROM " DEVICES_TABLE
|
const char* fmt = "SELECT id FROM " DEVICES_TABLE
|
||||||
" WHERE devtype=%d and devid = '%s'";
|
" WHERE devtype=%d and devid = '%s'";
|
||||||
string_printf( query, fmt, devIDType, devID->m_devIDString.c_str() );
|
string_printf( query, fmt, devIDType, devID->m_devIDString.c_str() );
|
||||||
|
|
Loading…
Reference in a new issue