[libgda: 1/2] remove sql check statement




commit ae2027bb8b4a73d0890c21fb69c7015b1dff03d9
Author: taozuhong <taozuhong gmail com>
Date:   Thu Sep 30 16:49:20 2021 +0800

    remove sql check statement

 libgda/gda-connection.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index 56fa164ef..2651668d6 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -3324,13 +3324,6 @@ gda_connection_execute_select_command (GdaConnection *cnc, const gchar *sql, GEr
 
        while (isspace (*sql))
                sql++;
-       g_return_val_if_fail (((sql[0] == 'S') || (sql[0] == 's')) &&
-                             ((sql[1] == 'E') || (sql[1] == 'e')) &&
-                             ((sql[2] == 'L') || (sql[2] == 'l')) &&
-                             ((sql[3] == 'E') || (sql[3] == 'e')) &&
-                             ((sql[4] == 'C') || (sql[4] == 'c')) &&
-                             ((sql[5] == 'T') || (sql[5] == 't')) &&
-                             isspace (sql[6]), NULL);
 
        g_mutex_lock (&global_mutex);
        if (!internal_parser)


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