return id;
}
+GdaSqlBuilderId
+gdaex_sql_builder_where_float (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
+ const gchar *table_name,
+ const gchar *field_name,
+ const gchar *field_alias,
+ GdaSqlOperatorType where_op,
+ gfloat op1,
+ gfloat op2)
+{
+ GValue *val1;
+ GValue *val2;
+
+ GdaSqlBuilderId id;
+
+ val1 = g_new0 (GValue, 1);
+ g_value_init (val1, G_TYPE_FLOAT);
+ g_value_set_float (val1, op1);
+
+ val2 = g_new0 (GValue, 1);
+ g_value_init (val2, G_TYPE_FLOAT);
+ g_value_set_float (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_string (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
const gchar *table_name,
GdaSqlOperatorType where_op,
gint op1,
gint op2);
+GdaSqlBuilderId gdaex_sql_builder_where_float (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
+ const gchar *table_name,
+ const gchar *field_name,
+ const gchar *field_alias,
+ GdaSqlOperatorType where_op,
+ gfloat op1,
+ gfloat op2);
GdaSqlBuilderId gdaex_sql_builder_where_string (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
const gchar *table_name,
const gchar *field_name,
GDA_SQL_OPERATOR_TYPE_EQ,
TRUE, FALSE);
+ gdaex_sql_builder_where_float (sqlb, 0,
+ "pippo", "income", "",
+ GDA_SQL_OPERATOR_TYPE_GEQ,
+ 823.44, 0.0);
+
g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb, NULL, NULL));
g_object_unref (sqlb);