[libgda] Don't make gda_modify_statement_param_types() in the public API



commit 0f1a85fbcd28a3976bc56957b6a0576b24981068
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Jan 8 15:13:03 2012 +0100

    Don't make gda_modify_statement_param_types() in the public API
    
    it's too specific to Libgda's internals

 libgda/gda-data-select.c |    2 +-
 libgda/gda-util.c        |    6 +++---
 libgda/gda-util.h        |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgda/gda-data-select.c b/libgda/gda-data-select.c
index 537e09e..3f0be40 100644
--- a/libgda/gda-data-select.c
+++ b/libgda/gda-data-select.c
@@ -1482,7 +1482,7 @@ gda_data_select_compute_modification_statements_ext (GdaDataSelect *model,
 	for (mtype = FIRST_QUERY; mtype < NB_QUERIES; mtype++) {
 		/* take into account the column type of "[+-]xxx" parameters */
 		if (modif_stmts[mtype])
-			gda_modify_statement_param_types (modif_stmts[mtype], model);
+			_gda_modify_statement_param_types (modif_stmts[mtype], model);
 #ifdef GDA_DEBUG_NO
 		if (modif_stmts[mtype]) {
 			gchar *sql;
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index af2931b..ad221a5 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -1923,8 +1923,8 @@ foreach_modify_param_type (GdaSqlAnyPart *part, GdaDataModel *model, G_GNUC_UNUS
 	return TRUE;
 }
 
-/**
- * gda_modify_statement_param_types:
+/*
+ * _gda_modify_statement_param_types:
  * @stmt: a #GdaStatement
  * @model: a #GdaDataModel
  *
@@ -1934,7 +1934,7 @@ foreach_modify_param_type (GdaSqlAnyPart *part, GdaDataModel *model, G_GNUC_UNUS
  * Since: 5.2
  */
 void
-gda_modify_statement_param_types (GdaStatement *stmt, GdaDataModel *model)
+_gda_modify_statement_param_types (GdaStatement *stmt, GdaDataModel *model)
 {
 	g_return_if_fail (GDA_IS_STATEMENT (stmt));
 	g_return_if_fail (GDA_IS_DATA_MODEL (model));
diff --git a/libgda/gda-util.h b/libgda/gda-util.h
index 3b48abe..b8df42e 100644
--- a/libgda/gda-util.h
+++ b/libgda/gda-util.h
@@ -102,7 +102,7 @@ GdaSqlStatement *gda_rewrite_sql_statement_for_null_parameters (GdaSqlStatement
 								gboolean *out_modified, GError **error);
 gboolean         gda_rewrite_statement_for_null_parameters (GdaStatement *stmt, GdaSet *params,
 							    GdaStatement **out_stmt, GError **error);
-void             gda_modify_statement_param_types (GdaStatement *stmt, GdaDataModel *model);
+void             _gda_modify_statement_param_types (GdaStatement *stmt, GdaDataModel *model);
 
 /*
  * DSN and connection string manipulations



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]