char *query = nullptr;
sqlite3_stmt *stmt = nullptr;
- query = sqlite3_mprintf("INSERT INTO widget_class "
+ query = sqlite3_mprintf("INSERT OR REPLACE INTO widget_class "
"(classid, setup_appid, appid, pkgid, prime, nodisplay, max_instance) "
"VALUES (%Q, %Q, %Q, %Q, %d, %d, %d)",
"org.tizen.test_widget", "org.tizen.setup_appid", "org.tizen.test_appid",
char *query = nullptr;
sqlite3_stmt *stmt = nullptr;
- query = sqlite3_mprintf("INSERT INTO support_size "
+ query = sqlite3_mprintf("INSERT OR REPLACE INTO support_size "
"(classid, preview, width, height) "
"VALUES (%Q, %Q, %d, %d)",
"org.tizen.test_widget", "/unittest/preview.png", 4, 2);
char *query = nullptr;
sqlite3_stmt *stmt = nullptr;
- query = sqlite3_mprintf("INSERT INTO label "
+ query = sqlite3_mprintf("INSERT OR REPLACE INTO label "
"(classid, locale, label) "
"VALUES (%Q, %Q, %Q)",
"org.tizen.test_widget", "en-us", "TestWidget");
char *query = nullptr;
sqlite3_stmt *stmt = nullptr;
- query = sqlite3_mprintf("INSERT INTO icon "
+ query = sqlite3_mprintf("INSERT OR REPLACE INTO icon "
"(classid, locale, icon) "
"VALUES (%Q, %Q, %Q)",
"org.tizen.test_widget", "en-us", "/unittest/icon.png");
{
int ret;
static const char query[] =
- "INSERT INTO support_size "
+ "INSERT OR REPLACE INTO support_size "
"(classid, preview, frame, width, height) "
"VALUES (?, ?, ?, ?, ?)";
GList *tmp;
{
int ret;
static const char query[] =
- "INSERT INTO label (classid, locale, label) "
+ "INSERT OR REPLACE INTO label (classid, locale, label) "
"VALUES (?, ?, ?)";
GList *tmp;
struct label *label;
{
int ret;
static const char query[] =
- "INSERT INTO icon (classid, locale, icon) "
+ "INSERT OR REPLACE INTO icon (classid, locale, icon) "
"VALUES (?, ?, ?)";
GList *tmp;
struct icon *icon;
{
int ret;
static const char query[] =
- "INSERT INTO widget_class (classid, update_period, "
+ "INSERT OR REPLACE INTO widget_class (classid, update_period, "
"setup_appid, appid, pkgid, nodisplay, max_instance, prime) "
"VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
GList *tmp;