]> saetta.ns0.it Git - zakform/gdaex/commitdiff
Error only when sql insert and update executions return not 1.
authorAndrea Zagli <azagli@libero.it>
Tue, 15 Dec 2015 10:46:01 +0000 (11:46 +0100)
committerAndrea Zagli <azagli@libero.it>
Tue, 15 Dec 2015 10:58:52 +0000 (11:58 +0100)
src/form.c

index 53d93bf74602cc613a1b7a350bb67df569efd060..2b5ea3a970552f26e5f6cf85f56748dd80503fa0 100644 (file)
@@ -391,7 +391,7 @@ zak_form_gdaex_provider_insert (ZakFormIProvider *provider, GPtrArray *elements)
                }
 
 
-       if (gdaex_sql_builder_execute (sqlb, priv->gdaex, NULL) <= 0)
+       if (gdaex_sql_builder_execute (sqlb, priv->gdaex, NULL) != 1)
                {
                        ret = FALSE;
                }
@@ -456,7 +456,7 @@ zak_form_gdaex_provider_update (ZakFormIProvider *provider, GPtrArray *elements)
                                }
                }
 
-       if (gdaex_sql_builder_execute (sqlb, priv->gdaex, NULL) <= 0)
+       if (gdaex_sql_builder_execute (sqlb, priv->gdaex, NULL) != 1)
                {
                        ret = FALSE;
                }