g_object_unref (sqlb2);
- sqlb = gdaex_sql_builder_new (GDA_SQL_STATEMENT_INSERT);
-
- gdaex_sql_builder_from_v (sqlb,
- "pippo", "pluto",
- "topolino", "",
- NULL);
+ ZQ_INSERT(sqlb4, "pippo");
gval = g_new0 (GValue, 1);
g_value_init (gval, G_TYPE_STRING);
g_value_set_string (gval, "il nome di pippo");
- gdaex_sql_builder_fields (sqlb,
+ gdaex_sql_builder_fields (sqlb4,
"pippo", "name", "", gval,
NULL);
gval = g_new0 (GValue, 1);
g_value_init (gval, G_TYPE_INT);
g_value_set_int (gval, 1);
- gdaex_sql_builder_where (sqlb, 0,
+ gdaex_sql_builder_where (sqlb4, 0,
"pippo", "id", "",
GDA_SQL_OPERATOR_TYPE_EQ,
gval,
NULL);
g_value_unset (gval);
- g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb, NULL, NULL));
+ g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb4, NULL, NULL));
- g_object_unref (sqlb);
+ g_object_unref (sqlb4);
- sqlb = gdaex_sql_builder_new (GDA_SQL_STATEMENT_INSERT);
+ ZQ_INSERT(sqlb5, "pippo");
- gdaex_sql_builder_from_v (sqlb,
- "pippo", "pluto",
- NULL);
+ gdaex_sql_builder_field_boolean (sqlb5, "pippo", "married", "", FALSE);
+ gdaex_sql_builder_field_int (sqlb5, "pippo", "id", "", 44);
+ gdaex_sql_builder_field_string (sqlb5, "pippo", "named", "", "the field value'");
+ gdaex_sql_builder_field_float (sqlb5, "pippo", "income", "", 4128.65);
- gdaex_sql_builder_field_boolean (sqlb, "pippo", "married", "", FALSE);
- gdaex_sql_builder_field_int (sqlb, "pippo", "id", "", 44);
- gdaex_sql_builder_field_string (sqlb, "pippo", "named", "", "the field value'");
- gdaex_sql_builder_field_float (sqlb, "pippo", "income", "", 4128.65);
+ g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb5, NULL, NULL));
- g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb, NULL, NULL));
-
- g_object_unref (sqlb);
+ g_object_unref (sqlb5);
return 0;
}