aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseData.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-08 11:36:56 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-08 11:36:56 +0000
commit98f8a155762d3c9f69856d19d50b6d647ea9e4ae (patch)
tree222e1ecd55fcc538f66c283ae3523417541da330 /Source/SPDatabaseData.h
parent4f7b215bc3cb14270e2825eacc57c075eedc847e (diff)
downloadsequelpro-98f8a155762d3c9f69856d19d50b6d647ea9e4ae.tar.gz
sequelpro-98f8a155762d3c9f69856d19d50b6d647ea9e4ae.tar.bz2
sequelpro-98f8a155762d3c9f69856d19d50b6d647ea9e4ae.zip
• added to hard-coded encoding list the DESCRIPTION field
• fixed issue while retrieving possible encodings/collations from information_schema - in many cases "SHOW TABLES IN information_schema LIKE 'character_sets'" returns NULL whereby "SELECT * FROM `information_schema`.`character_sets`" returns the correct list - change the test query to the latter syntax - if the retrieving of possible encodings fails return an array of the hard-coded list with dictionaries containing the keys for name AND description -- [this fix solves i400 due to the fact that the chosen encoding title from the popup list must be of the format: "description (name)"; otherwise the following regexp returns (null) because it's looking for the content of parentheses]
Diffstat (limited to 'Source/SPDatabaseData.h')
-rw-r--r--Source/SPDatabaseData.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPDatabaseData.h b/Source/SPDatabaseData.h
index b03a59b4..a7d093ff 100644
--- a/Source/SPDatabaseData.h
+++ b/Source/SPDatabaseData.h
@@ -29,8 +29,9 @@
typedef struct _CHAR_SETS
{
unsigned int nr;
- const char *name;
- const char *collation;
+ const char *name;
+ const char *collation;
+ const char *description;
} CHAR_SETS;
@interface SPDatabaseData : NSObject