return priv->id_where;
}
+GdaSqlBuilderId
+gdaex_sql_builder_where_boolean (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
+ const gchar *table_name,
+ const gchar *field_name,
+ const gchar *field_alias,
+ GdaSqlOperatorType where_op,
+ gboolean op1,
+ gboolean op2)
+{
+ GValue *val1;
+ GValue *val2;
+
+ GdaSqlBuilderId id;
+
+ val1 = g_new0 (GValue, 1);
+ g_value_init (val1, G_TYPE_BOOLEAN);
+ g_value_set_boolean (val1, op1);
+
+ val2 = g_new0 (GValue, 1);
+ g_value_init (val2, G_TYPE_BOOLEAN);
+ g_value_set_boolean (val2, op2);
+
+ id = gdaex_sql_builder_where (sqlb, op, table_name, field_name, field_alias, where_op, val1, val2, NULL);
+
+ g_value_unset (val1);
+ g_value_unset (val2);
+
+ return id;
+}
+
GdaSqlBuilderId
gdaex_sql_builder_where_int (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
const gchar *table_name,
GdaSqlBuilderId gdaex_sql_builder_where (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
...);
+GdaSqlBuilderId gdaex_sql_builder_where_boolean (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
+ const gchar *table_name,
+ const gchar *field_name,
+ const gchar *field_alias,
+ GdaSqlOperatorType where_op,
+ gboolean op1,
+ gboolean op2);
GdaSqlBuilderId gdaex_sql_builder_where_int (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
const gchar *table_name,
const gchar *field_name,
GDA_SQL_OPERATOR_TYPE_BETWEEN,
1, 99);
+ gdaex_sql_builder_where_boolean (sqlb, 0,
+ "pippo", "married", "",
+ GDA_SQL_OPERATOR_TYPE_EQ,
+ TRUE, FALSE);
+
g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb, NULL, NULL));
g_object_unref (sqlb);