aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExtendedTableInfo.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-12 14:01:31 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-12 14:01:31 +0000
commit625538d64c9ab239175c614f20792f284c55514b (patch)
tree5e475e127afbad191ac01971c7d8903830fe0dd7 /Source/SPExtendedTableInfo.m
parent23ec698784a8c6bd14d001e738205f2931478677 (diff)
downloadsequelpro-625538d64c9ab239175c614f20792f284c55514b.tar.gz
sequelpro-625538d64c9ab239175c614f20792f284c55514b.tar.bz2
sequelpro-625538d64c9ab239175c614f20792f284c55514b.zip
• fixed: escape new entered comments in the Table Info Pane before applying changes to the db
Diffstat (limited to 'Source/SPExtendedTableInfo.m')
-rw-r--r--Source/SPExtendedTableInfo.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m
index e07eb17c..8b414219 100644
--- a/Source/SPExtendedTableInfo.m
+++ b/Source/SPExtendedTableInfo.m
@@ -345,7 +345,7 @@
if (![currentComment isEqualToString:newComment]) {
// Alter table's comment
- [connection queryString:[NSString stringWithFormat:@"ALTER TABLE %@ COMMENT = '%@'", [selectedTable backtickQuotedString], newComment]];
+ [connection queryString:[NSString stringWithFormat:@"ALTER TABLE %@ COMMENT = '%@'", [selectedTable backtickQuotedString], [connection prepareString:newComment]]];
if ([connection getLastErrorID] == 0) {
// Reload the table's data