[libgda] Fixed Bug #754707, now is available prepare_create_table: see API change



commit 19f3059dc5a10ea7d79a56283adcab3db4803295
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Apr 28 14:24:55 2016 -0500

    Fixed Bug #754707, now is available prepare_create_table: see API change
    
    * prepare_create_table() has been renamed to prepare_create_table_v()
    * Now prepare_create_table_v() is available from VAPI
    * For bindings you should use prepare_create_table() witch is fully
      introspectable

 libgda/Gda-6.0.metadata       |    1 +
 libgda/gda-server-operation.c |   16 ++++++++--------
 libgda/gda-server-operation.h |    4 ++--
 3 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/libgda/Gda-6.0.metadata b/libgda/Gda-6.0.metadata
index 65a9598..8bbe4e9 100644
--- a/libgda/Gda-6.0.metadata
+++ b/libgda/Gda-6.0.metadata
@@ -13,4 +13,5 @@ Numeric.get_string nullable=true
 MetaStore.extract_v name="extract"
 ServerOperation.set_value_at_path name="set_value_at"
 ServerOperation.get_value_at_path name="get_value_at"
+ServerOperation.prepare_create_table_v skip=false
 
diff --git a/libgda/gda-server-operation.c b/libgda/gda-server-operation.c
index 660d172..0e32dd9 100644
--- a/libgda/gda-server-operation.c
+++ b/libgda/gda-server-operation.c
@@ -3147,7 +3147,7 @@ gda_server_operation_create_table_arg_get_fkey_refs (GdaServerOperationCreateTab
 
 
 /**
- * gda_server_operation_prepare_create_table:
+ * gda_server_operation_prepare_create_table_v:
  * @cnc: an opened connection
  * @table_name: name of the table to create
  * @error: a place to store errors, or %NULL
@@ -3160,11 +3160,11 @@ gda_server_operation_create_table_arg_get_fkey_refs (GdaServerOperationCreateTab
  *
  * Returns: (transfer full) (allow-none): a #GdaServerOperation if no errors; NULL and set @error otherwise
  *
- * Since: 6.0
+ * Since: 4.2.3
  */
 G_GNUC_NULL_TERMINATED
 GdaServerOperation*
-gda_server_operation_prepare_create_table (GdaConnection *cnc, const gchar *table_name, GError **error, ...)
+gda_server_operation_prepare_create_table_v (GdaConnection *cnc, const gchar *table_name, GError **error, 
...)
 {
        GdaServerOperation *op;
 
@@ -3239,16 +3239,16 @@ gda_server_operation_prepare_create_table (GdaConnection *cnc, const gchar *tabl
 
        va_end (args);
 
-       op = gda_server_operation_prepare_create_table_v (cnc, table_name, arguments, error);
+       op = gda_server_operation_prepare_create_table (cnc, table_name, arguments, error);
        g_list_free_full (arguments, (GDestroyNotify) gda_server_operation_create_table_arg_free);
        return op;
 }
 
 /**
- * gda_server_operation_prepare_create_table_v: (rename server_operation_create_table):
+ * gda_server_operation_prepare_create_table:
  * @cnc: an opened connection
  * @table_name: name of the table to create
- * @arguments: list of arguments as #GdaServerOperationPrepareCreateTableArg containing column's name,
+ * @arguments: (element-type GdaServerOperationCreateTableArg): list of arguments as 
#GdaServerOperationPrepareCreateTableArg containing column's name,
  * column's #GType and a #GdaServerOperationCreateTableFlag flag
  * @error: a place to store errors, or %NULL
  *
@@ -3277,10 +3277,10 @@ gda_server_operation_prepare_create_table (GdaConnection *cnc, const gchar *tabl
  *
  * Returns: (transfer full) (allow-none): a #GdaServerOperation if no errors; NULL and set @error otherwise
  *
- * Since: 4.2.3
+ * Since: 6.0.0
  */
 GdaServerOperation*
-gda_server_operation_prepare_create_table_v (GdaConnection *cnc, const gchar *table_name, GList *arguments, 
GError **error)
+gda_server_operation_prepare_create_table (GdaConnection *cnc, const gchar *table_name, GList *arguments, 
GError **error)
 {
        GdaServerOperation *op;
        GdaServerProvider *server;
diff --git a/libgda/gda-server-operation.h b/libgda/gda-server-operation.h
index 425b47d..cbc44ad 100644
--- a/libgda/gda-server-operation.h
+++ b/libgda/gda-server-operation.h
@@ -297,8 +297,8 @@ void    gda_server_operation_create_table_arg_fkey_ref_field_set_referenced_fiel
 gchar*  gda_server_operation_create_table_arg_fkey_ref_field_get_referenced_field 
(GdaServerOperationCreateTableArgFKeyRefField *ref);
 
 
-GdaServerOperation *gda_server_operation_prepare_create_table          (GdaConnection *cnc, const gchar 
*table_name, GError **error, ...);
-GdaServerOperation* gda_server_operation_prepare_create_table_v        (GdaConnection *cnc, const gchar 
*table_name, GList *arguments, GError **error);
+GdaServerOperation *gda_server_operation_prepare_create_table_v          (GdaConnection *cnc, const gchar 
*table_name, GError **error, ...);
+GdaServerOperation* gda_server_operation_prepare_create_table        (GdaConnection *cnc, const gchar 
*table_name, GList *arguments, GError **error);
 gboolean            gda_server_operation_perform_create_table          (GdaServerOperation *op, GError 
**error);
 GdaServerOperation *gda_server_operation_prepare_drop_table            (GdaConnection *cnc, const gchar 
*table_name, GError **error);
 gboolean            gda_server_operation_perform_drop_table            (GdaServerOperation *op, GError 
**error);


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