]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
Updated configure (not only configure.in)
[wxWidgets.git] / src / common / db.cpp
index 5df993b4bf54544d4f9687e60ec977182decfb4c..bdac571002e4dc94dc8cc8234133107a6a20a6a9 100644 (file)
@@ -193,7 +193,7 @@ bool wxDB::Open(char *Dsn, char *Uid, char *AuthStr)
        // =====================================================================
        // Results from a Microsoft Access 7.0 db, using a driver from Microsoft
        //
-       // SQL_VARCHAR                                          type name = 'TEXT', Precision = 255
+       // SQL_VARCHAR                                          type name = 'TEXT(', Precision = 255
        // SQL_TIMESTAMP                                        type name = 'DATETIME'
        // SQL_DECIMAL                                          SQL_NO_DATA_FOUND
        // SQL_NUMERIC                                          type name = 'CURRENCY', Precision = 19
@@ -979,14 +979,14 @@ bool wxDB::Grant(int privileges, char *tableName, char *userList)
                int c = 0;
                if (privileges & DB_GRANT_SELECT)
                {
-                       strcat(sqlStmt, "SELECT");
+                       strcat(sqlStmt, "SELECT(");
                        c++;
                }
                if (privileges & DB_GRANT_INSERT)
                {
                        if (c++)
                                strcat(sqlStmt, ", ");
-                       strcat(sqlStmt, "INSERT");
+                       strcat(sqlStmt, "INSERT(");
                }
                if (privileges & DB_GRANT_UPDATE)
                {