mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-21 02:20:55 +00:00
* EOAccess/EOSQLExpression.m
(+createTableStatementsForEntityGroup:) (+dropTableStatementsForEntityGroup:) (+primaryKeySupportStatementsForEntityGroup:) (+createTableStatementsForEntityGroup:): Return an empty array for abstract entities. * EOAdaptors/PostgreSQLAdaptor/PostgreSQLExpression.m (+dropTableStatementsForEntityGroup:): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23653 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9afa810960
commit
0412fd6a40
3 changed files with 30 additions and 0 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2006-09-28 Matt Rice <ratmice@yahoo.com>
|
||||
|
||||
* EOAccess/EOSQLExpression.m
|
||||
(+createTableStatementsForEntityGroup:)
|
||||
(+dropTableStatementsForEntityGroup:)
|
||||
(+primaryKeySupportStatementsForEntityGroup:)
|
||||
(+createTableStatementsForEntityGroup:): Return an empty array for
|
||||
abstract entities.
|
||||
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLExpression.m
|
||||
(+dropTableStatementsForEntityGroup:): Ditto.
|
||||
|
||||
2006-09-27 Matt Rice <ratmice@yahoo.com>
|
||||
|
||||
|
|
|
@ -2788,6 +2788,9 @@ NSString *EODropDatabaseKey = @"EODropDatabaseKey";
|
|||
|
||||
EOFLOGClassFnStartOrCond(@"EOSQLExpression");
|
||||
|
||||
if ([[entityGroup objectAtIndex:0] isAbstractEntity])
|
||||
return [NSArray array];
|
||||
|
||||
sqlExp = [self sqlExpressionWithEntity:[entityGroup objectAtIndex: 0]];
|
||||
|
||||
entityEnum = [entityGroup objectEnumerator];
|
||||
|
@ -2824,6 +2827,10 @@ NSString *EODropDatabaseKey = @"EODropDatabaseKey";
|
|||
EOFLOGClassFnStartOrCond(@"EOSQLExpression");
|
||||
|
||||
entity = [entityGroup objectAtIndex: 0];
|
||||
|
||||
if ([entity isAbstractEntity])
|
||||
return [NSArray array];
|
||||
|
||||
sqlExp = [self sqlExpressionWithEntity: entity];
|
||||
tableName = [entity externalName];
|
||||
tableName = [sqlExp sqlStringForSchemaObjectName: tableName];
|
||||
|
@ -2900,6 +2907,10 @@ NSString *EODropDatabaseKey = @"EODropDatabaseKey";
|
|||
EOFLOGClassFnStartOrCond(@"EOSQLExpression");
|
||||
|
||||
entity = [entityGroup objectAtIndex: 0];
|
||||
|
||||
if ([entity isAbstractEntity])
|
||||
return [NSArray array];
|
||||
|
||||
pkRootName = [entity primaryKeyRootName];
|
||||
seqName = [NSString stringWithFormat: @"%@_SEQ", pkRootName];
|
||||
|
||||
|
@ -2927,6 +2938,10 @@ NSString *EODropDatabaseKey = @"EODropDatabaseKey";
|
|||
EOFLOGClassFnStartOrCond(@"EOSQLExpression");
|
||||
|
||||
entity = [entityGroup objectAtIndex: 0];
|
||||
|
||||
if ([entity isAbstractEntity])
|
||||
return [NSArray array];
|
||||
|
||||
pkRootName = [entity primaryKeyRootName];
|
||||
seqName = [NSString stringWithFormat: @"%@_SEQ", pkRootName];
|
||||
|
||||
|
|
|
@ -493,6 +493,11 @@ RCS_ID("$Id$")
|
|||
EOSQLExpression *sqlExp;
|
||||
NSString *tableName;
|
||||
NSString *stmt;
|
||||
|
||||
if ([entity isAbstractEntity])
|
||||
{
|
||||
return [NSArray array];
|
||||
}
|
||||
|
||||
sqlExp = [self expressionForString: nil];
|
||||
tableName = [entity externalName];
|
||||
|
|
Loading…
Reference in a new issue