tests/*.exe
tests/select
tests/getsql
+tests/sqlbuilder
}
const gchar
-*gdaex_sql_builder_get_sql (GdaExSqlBuilder *sqlb)
+*gdaex_sql_builder_get_sql (GdaExSqlBuilder *sqlb, GdaConnection *cnc, GdaSet *params)
{
gchar *ret;
GdaStatement *stmt;
stmt = gda_sql_builder_get_statement (priv->sqlb, NULL);
if (stmt != NULL)
{
- ret = gda_statement_to_sql (stmt, NULL, NULL);
+ ret = gda_statement_to_sql_extended (stmt,
+ cnc,
+ params,
+ GDA_STATEMENT_SQL_PARAMS_AS_VALUES,
+ NULL,
+ NULL);
}
return ret;
void gdaex_sql_builder_fields (GdaExSqlBuilder *sqlb, ...);
GdaSqlBuilder *gdaex_sql_builder_get_gda_sql_builder (GdaExSqlBuilder *sqlb);
-const gchar *gdaex_sql_builder_get_sql (GdaExSqlBuilder *sqlb);
+const gchar *gdaex_sql_builder_get_sql (GdaExSqlBuilder *sqlb, GdaConnection *cnc, GdaSet *params);
G_END_DECLS
"topolino", "id_pippo", "",
NULL);
- g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb));
+ g_message ("sql: %s", gdaex_sql_builder_get_sql (sqlb, NULL, NULL));
return 0;
}