sqlite3_stmt *insert_way_data;
sqlite3_stmt *insert_way_ref;
sqlite3_stmt *insert_way_name;
+ sqlite3_stmt *insert_way_names_nls;
sqlite3_stmt *insert_way_n2n;
sqlite3_stmt *delete_way;
sqlite3_stmt *delete_way_n2n;
sqlite3_stmt *delete_way_seg_wsid;
sqlite3_stmt *delete_way_name;
+ sqlite3_stmt *delete_way_names_nls;
sqlite3_stmt *delete_way_ref;
sqlite3_stmt *insert_place;
sqlite3_finalize(sql.insert_place);
sqlite3_finalize(sql.delete_place);
+sqlite3_finalize(sql.delete_way);
+sqlite3_finalize(sql.insert_way_data);
+
+sqlite3_finalize(sql.delete_way_name);
+sqlite3_finalize(sql.insert_way_name);
+
+sqlite3_finalize(sql.delete_way_n2n);
+sqlite3_finalize(sql.insert_way_n2n);
+
+sqlite3_finalize(sql.delete_way_names_nls);
+sqlite3_finalize(sql.insert_way_names_nls);
+
return sqlite3_close(db)==SQLITE_OK ? TRUE : FALSE;
}
sqlite3_prepare_v2(db, "insert or replace into way_names (wid,name) values (?, ?)", -1, &sql.insert_way_name, NULL);
sqlite3_prepare_v2(db, "delete from way_names", -1, &sql.delete_way_name, NULL);
+/* Other language names for ways */
+sqlite3_prepare_v2(db, "insert into way_names_nls (wid,lang,name) values (?, ?, ?)", -1, &sql.insert_way_names_nls, NULL);
+sqlite3_prepare_v2(db, "delete from way_names_nls where wid=?", -1, &sql.delete_way_names_nls, NULL);
+
/* Way ref and int_ref */
sqlite3_prepare_v2(db, "insert or replace into way_ref (rid,ref,int_ref) values (?, ?, ?)", -1, &sql.insert_way_ref, NULL);
sqlite3_prepare_v2(db, "delete from way_ref", -1, &sql.delete_way_ref, NULL);