[libgda: 2/3] add parameter: INTERACTIVE




commit 66318136029c779d031856610c6270592ebfaae4
Author: taozuhong <taozuhong gmail com>
Date:   Mon Oct 4 15:17:54 2021 +0800

    add parameter: INTERACTIVE

 providers/mysql/gda-mysql-provider.c   | 8 ++++----
 providers/mysql/mysql_specs_dsn.xml.in | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/providers/mysql/gda-mysql-provider.c b/providers/mysql/gda-mysql-provider.c
index c27b204dc..323c6510c 100644
--- a/providers/mysql/gda-mysql-provider.c
+++ b/providers/mysql/gda-mysql-provider.c
@@ -437,7 +437,7 @@ real_open_connection (const gchar  *host,
                      const gchar  *password,
                      gboolean      use_ssl,
                      gboolean      compress,
-                         gboolean      interactive,
+                     gboolean      interactive,
                      const gchar  *proto,
                      GError      **error)
 {
@@ -613,7 +613,7 @@ gda_mysql_provider_open_connection (GdaServerProvider               *provider,
                                             user, password,
                                             (use_ssl && ((*use_ssl == 't') || (*use_ssl == 'T'))) ? TRUE : 
FALSE,
                                             (compress && ((*compress == 't') || (*compress == 'T'))) ? TRUE 
: FALSE,
-                                                (interactive && ((*interactive == 't') || (*interactive == 
'T'))) ? TRUE : FALSE,
+                                            (interactive && ((*interactive == 't') || (*interactive == 
'T'))) ? TRUE : FALSE,
                                             proto,
                                             &error);
        if (!mysql) {
@@ -769,8 +769,8 @@ gda_mysql_provider_supports_operation (GdaServerProvider       *provider,
         case GDA_SERVER_OPERATION_RENAME_TABLE:
         case GDA_SERVER_OPERATION_COMMENT_TABLE:
         case GDA_SERVER_OPERATION_ADD_COLUMN:
-               case GDA_SERVER_OPERATION_DROP_COLUMN:
-               case GDA_SERVER_OPERATION_COMMENT_COLUMN:
+        case GDA_SERVER_OPERATION_DROP_COLUMN:
+        case GDA_SERVER_OPERATION_COMMENT_COLUMN:
         case GDA_SERVER_OPERATION_CREATE_INDEX:
         case GDA_SERVER_OPERATION_DROP_INDEX:
         case GDA_SERVER_OPERATION_CREATE_VIEW:
diff --git a/providers/mysql/mysql_specs_dsn.xml.in b/providers/mysql/mysql_specs_dsn.xml.in
index 2883a5cff..234125d4e 100644
--- a/providers/mysql/mysql_specs_dsn.xml.in
+++ b/providers/mysql/mysql_specs_dsn.xml.in
@@ -7,6 +7,7 @@
     <parameter id="UNIX_SOCKET" _name="UNIX Socket" _descr="Full path of the UNIX socket to use when 
connecting locally" gdatype="gchararray" nullok="TRUE"/>
     <parameter id="USE_SSL" _name="Require SSL" _descr="Whether or not to use SSL to establish the 
connection" gdatype="gboolean" nullok="TRUE"/>
     <parameter id="COMPRESS" _name="Compress" _descr="Use compression protocol" gdatype="gboolean" 
nullok="TRUE"/>
+    <parameter id="INTERACTIVE" _name="Interactive" _descr=" The client's session wait timeout set to the 
value of the session interactive_timeout variable." gdatype="gboolean" nullok="TRUE"/>
     <parameter id="PROTOCOL" _name="Connection protocol" _descr="Explicitly specifies a connection protocol 
to use. It is useful when the other connection parameters normally would cause a protocol to be used other 
than the one you want" gdatype="string" source="proto:0" nullok="TRUE"/>
   </parameters>
   <sources>


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