Monotone-Parent: c69af3e4b83d5cab3a52701fb736c8a149697338

Monotone-Revision: 58f1829bce5e146423ed657d76063f09b7596385

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-06-28T14:45:12
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2012-06-28 14:45:12 +00:00
parent 988ca2d853
commit 8ef875b1f4
2 changed files with 17 additions and 15 deletions

View File

@ -48,4 +48,15 @@
@end @end
/* interfaces exposed so that categories can be created from them */
@interface GCSPostgreSQLSpecialQueries : GCSSpecialQueries
@end
@interface GCSMySQLSpecialQueries : GCSSpecialQueries
@end
@interface GCSOracleSpecialQueries : GCSSpecialQueries
@end
#endif /* GCSSPECIALQUERIES_H */ #endif /* GCSSPECIALQUERIES_H */

View File

@ -27,15 +27,6 @@
#import "GCSSpecialQueries.h" #import "GCSSpecialQueries.h"
@interface GCSPostgreSQLSpecialQueries : GCSSpecialQueries
@end
@interface GCSMySQLSpecialQueries : GCSSpecialQueries
@end
@interface GCSOracleSpecialQueries : GCSSpecialQueries
@end
@implementation EOAdaptorChannel (GCSSpecialQueries) @implementation EOAdaptorChannel (GCSSpecialQueries)
- (GCSSpecialQueries *) specialQueries - (GCSSpecialQueries *) specialQueries
@ -163,7 +154,7 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (\n" = (@"CREATE TABLE %@ (\n"
@" c_name VARCHAR (255) NOT NULL PRIMARY KEY,\n" @" c_name VARCHAR (255) PRIMARY KEY,\n"
@" c_content TEXT NOT NULL,\n" @" c_content TEXT NOT NULL,\n"
@" c_creationdate INT4 NOT NULL,\n" @" c_creationdate INT4 NOT NULL,\n"
@" c_lastmodified INT4 NOT NULL,\n" @" c_lastmodified INT4 NOT NULL,\n"
@ -190,7 +181,7 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_id VARCHAR(255) NOT NULL PRIMARY KEY," @" c_id VARCHAR(255) PRIMARY KEY,"
@" c_value VARCHAR(255) NOT NULL," @" c_value VARCHAR(255) NOT NULL,"
@" c_creationdate INT4 NOT NULL," @" c_creationdate INT4 NOT NULL,"
@" c_lastseen INT4 NOT NULL)"); @" c_lastseen INT4 NOT NULL)");
@ -257,7 +248,7 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (\n" = (@"CREATE TABLE %@ (\n"
@" c_name VARCHAR (255) NOT NULL PRIMARY KEY,\n" @" c_name VARCHAR (255) PRIMARY KEY,\n"
@" c_content MEDIUMTEXT NOT NULL,\n" @" c_content MEDIUMTEXT NOT NULL,\n"
@" c_creationdate INT NOT NULL,\n" @" c_creationdate INT NOT NULL,\n"
@" c_lastmodified INT NOT NULL,\n" @" c_lastmodified INT NOT NULL,\n"
@ -284,7 +275,7 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_id VARCHAR(255) NOT NULL PRIMARY KEY," @" c_id VARCHAR(255) PRIMARY KEY,"
@" c_value VARCHAR(255) NOT NULL," @" c_value VARCHAR(255) NOT NULL,"
@" c_creationdate INT NOT NULL," @" c_creationdate INT NOT NULL,"
@" c_lastseen INT NOT NULL)"); @" c_lastseen INT NOT NULL)");
@ -351,7 +342,7 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (\n" = (@"CREATE TABLE %@ (\n"
@" c_name VARCHAR2 (255) NOT NULL PRIMARY KEY,\n" @" c_name VARCHAR2 (255) PRIMARY KEY,\n"
@" c_content CLOB NOT NULL,\n" @" c_content CLOB NOT NULL,\n"
@" c_creationdate INTEGER NOT NULL,\n" @" c_creationdate INTEGER NOT NULL,\n"
@" c_lastmodified INTEGER NOT NULL,\n" @" c_lastmodified INTEGER NOT NULL,\n"
@ -377,7 +368,7 @@
{ {
static NSString *sqlFolderFormat static NSString *sqlFolderFormat
= (@"CREATE TABLE %@ (" = (@"CREATE TABLE %@ ("
@" c_id VARCHAR2(255) NOT NULL PRIMARY KEY," @" c_id VARCHAR2(255) PRIMARY KEY,"
@" c_value VARCHAR2(255) NOT NULL," @" c_value VARCHAR2(255) NOT NULL,"
@" c_creationdate INTEGER NOT NULL," @" c_creationdate INTEGER NOT NULL,"
@" c_lastseen INTEGER NOT NULL)"); @" c_lastseen INTEGER NOT NULL)");