return id;
}
+GdaSqlBuilderId
+gdaex_sql_builder_where_double (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
+ const gchar *table_name,
+ const gchar *field_name,
+ const gchar *field_alias,
+ GdaSqlOperatorType where_op,
+ gdouble op1,
+ gdouble op2)
+{
+ GValue *val1;
+ GValue *val2;
+
+ GdaSqlBuilderId id;
+
+ val1 = g_new0 (GValue, 1);
+ g_value_init (val1, G_TYPE_DOUBLE);
+ g_value_set_double (val1, op1);
+
+ val2 = g_new0 (GValue, 1);
+ g_value_init (val2, G_TYPE_DOUBLE);
+ g_value_set_double (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,
/*
* sqlbuilder.h
*
- * Copyright (C) 2015-2019 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2020 Andrea Zagli <azagli@libero.it>
*
* This file is part of libgdaex.
*
void gdaex_sql_builder_fields (GdaExSqlBuilder *sqlb, ...);
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,
GdaSqlOperatorType where_op,
gfloat op1,
gfloat op2);
+GdaSqlBuilderId gdaex_sql_builder_where_double (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
+ const gchar *table_name,
+ const gchar *field_name,
+ const gchar *field_alias,
+ GdaSqlOperatorType where_op,
+ gdouble op1,
+ gdouble op2);
GdaSqlBuilderId gdaex_sql_builder_where_string (GdaExSqlBuilder *sqlb, GdaSqlOperatorType op,
const gchar *table_name,
const gchar *field_name,