Closed usagi closed 10 years ago
virtual_keyboard_t::virtual_keyboard_t(const configuration_t& conf)
: database_object(conf.virtual_keyboard.database)
, database_(conf.virtual_keyboard.database)
, table_(conf.virtual_keyboard.table)
, statement(database_object.prepare
( "select id"
" from " + conf.virtual_keyboard.table +
" where"
" x <= ? and x + w >= ?"
" y <= ? and y + h >= ?"
" s <= ?"
)
)
{
↓修正: statementのSQL文に and が2箇所抜けてた。
virtual_keyboard_t::virtual_keyboard_t(const configuration_t& conf)
: database_object(conf.virtual_keyboard.database)
, database_(conf.virtual_keyboard.database)
, table_(conf.virtual_keyboard.table)
, statement(database_object.prepare
( "select id"
" from " + conf.virtual_keyboard.table +
" where"
" x <= ? and x + w >= ? and"
" y <= ? and y + h >= ? and"
" s <= ?"
)
)
{