@@ -138,14 +138,14 @@ GArray* array_get_candidates_from_main(ArrayContext *context, gchar *keys) {
138138 return result ;
139139}
140140
141- GArray * array_get_candidates_from_short (ArrayContext * context , gchar * keys ) {
141+ GArray * array_get_candidates_from_simple (ArrayContext * context , gchar * keys ) {
142142 GArray * result ;
143143 result = (GArray * )g_array_new (FALSE, FALSE, sizeof (gchar * ));
144144
145145 sqlite3_stmt * stmt ;
146146
147147 int retcode ;
148- retcode = sqlite3_prepare_v2 (context -> conn , "SELECT ch FROM short WHERE keys=?" , -1 , & stmt , NULL );
148+ retcode = sqlite3_prepare_v2 (context -> conn , "SELECT ch FROM simple WHERE keys=?" , -1 , & stmt , NULL );
149149 if (retcode == SQLITE_OK ) {
150150 sqlite3_bind_text (stmt , 1 , keys , -1 , SQLITE_TRANSIENT );
151151 while (sqlite3_step (stmt ) == SQLITE_ROW ) {
@@ -167,7 +167,7 @@ GArray* array_get_candidates_from_special(ArrayContext *context, gchar *keys) {
167167 sqlite3_stmt * stmt ;
168168
169169 int retcode ;
170- retcode = sqlite3_prepare_v2 (context -> conn , "SELECT ch FROM special WHERE keys=?" , -1 , & stmt , NULL );
170+ retcode = sqlite3_prepare_v2 (context -> conn , "SELECT ch FROM main WHERE cat='2' AND keys=?" , -1 , & stmt , NULL );
171171 if (retcode == SQLITE_OK ) {
172172 sqlite3_bind_text (stmt , 1 , keys , -1 , SQLITE_TRANSIENT );
173173 while (sqlite3_step (stmt ) == SQLITE_ROW ) {
@@ -189,7 +189,7 @@ GArray* array_get_reverted_key_candidates_from_special(ArrayContext *context, gc
189189 sqlite3_stmt * stmt ;
190190
191191 int retcode ;
192- retcode = sqlite3_prepare_v2 (context -> conn , "SELECT keys FROM special WHERE ch=?" , -1 , & stmt , NULL );
192+ retcode = sqlite3_prepare_v2 (context -> conn , "SELECT keys FROM main WHERE cat='2' AND ch=?" , -1 , & stmt , NULL );
193193 if (retcode == SQLITE_OK ) {
194194 sqlite3_bind_text (stmt , 1 , ch , -1 , SQLITE_TRANSIENT );
195195 while (sqlite3_step (stmt ) == SQLITE_ROW ) {
@@ -211,7 +211,7 @@ GArray* array_get_reverted_char_candidates_from_special(ArrayContext *context, g
211211 sqlite3_stmt * stmt ;
212212
213213 int retcode ;
214- retcode = sqlite3_prepare_v2 (context -> conn , "SELECT ch FROM special WHERE keys=?" , -1 , & stmt , NULL );
214+ retcode = sqlite3_prepare_v2 (context -> conn , "SELECT ch FROM main WHERE cat='2' AND keys=?" , -1 , & stmt , NULL );
215215 if (retcode == SQLITE_OK ) {
216216 sqlite3_bind_text (stmt , 1 , keys , -1 , SQLITE_TRANSIENT );
217217 while (sqlite3_step (stmt ) == SQLITE_ROW ) {
0 commit comments