aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseAction.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseAction.m')
-rw-r--r--Source/SPDatabaseAction.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPDatabaseAction.m b/Source/SPDatabaseAction.m
index f5ed8b60..c7f5dbf9 100644
--- a/Source/SPDatabaseAction.m
+++ b/Source/SPDatabaseAction.m
@@ -71,9 +71,9 @@
if([encoding length]) { // [nil length] == 0
[query appendFormat:@" DEFAULT CHARACTER SET = %@",[encoding backtickQuotedString]];
- if([collation length]) {
- [query appendFormat:@" DEFAULT COLLATE = %@",[collation backtickQuotedString]];
- }
+ }
+ if([collation length]) {
+ [query appendFormat:@" DEFAULT COLLATE = %@",[collation backtickQuotedString]];
}
[connection queryString:query];