diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-10-09 10:13:42 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-10-09 10:13:42 +0000 |
commit | 0e9df92aef86421374ca1756ff3cbfa4c386c822 (patch) | |
tree | 778ccf801f614de0da69c1d1e298c2783861b6d5 /Source/SPSQLParser.h | |
parent | 5759187115c2aaa2db5f528a02bee80ba0980c39 (diff) | |
download | sequelpro-0e9df92aef86421374ca1756ff3cbfa4c386c822.tar.gz sequelpro-0e9df92aef86421374ca1756ff3cbfa4c386c822.tar.bz2 sequelpro-0e9df92aef86421374ca1756ff3cbfa4c386c822.zip |
• fixed bug while parsing the CREATE TABLE syntax if a column name contains a '#' or '/*'
- this fixes issue 431
- furthermore if the parsing process fails for some other reasons, i.e. a table name is NULL or empty SP alerts the user about it instead of stalling
Diffstat (limited to 'Source/SPSQLParser.h')
-rw-r--r-- | Source/SPSQLParser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPSQLParser.h b/Source/SPSQLParser.h index 73dfe493..76105e27 100644 --- a/Source/SPSQLParser.h +++ b/Source/SPSQLParser.h @@ -68,6 +68,7 @@ int delimiterLength; BOOL charIsDelimiter; BOOL isDelimiterCommand; + BOOL ignoreCommentStrings; } @@ -77,7 +78,7 @@ typedef enum _SPCommentTypes { SPCStyleComment = 2 } SPCommentType; - +- (void) setIgnoringCommentStrings:(BOOL)ignoringCommentStrings; /* * Removes comments within the current string, trimming "#", "--[/s]", and "/* * /" style strings. |