mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-05-31 09:21:02 +00:00
* Apps/EOModelEditor/EOModelEditorApp.m set the model name
correctly for SQLite3 databases too, use the file name git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36417 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8a7a69a6e4
commit
eabd42b3e2
2 changed files with 7 additions and 1 deletions
|
@ -131,7 +131,11 @@
|
||||||
[channel openChannel];
|
[channel openChannel];
|
||||||
newModel = [channel describeModelWithTableNames:[channel describeTableNames]];
|
newModel = [channel describeModelWithTableNames:[channel describeTableNames]];
|
||||||
[newModel setConnectionDictionary:[adaptor connectionDictionary]];
|
[newModel setConnectionDictionary:[adaptor connectionDictionary]];
|
||||||
[newModel setName: [[adaptor connectionDictionary] objectForKey:@"databaseName"]];
|
// PostgreSQL has a databaseName, SQLite3 has a databasePath in its connectionDictionary
|
||||||
|
if ([[adaptor connectionDictionary] objectForKey:@"databaseName"] != nil)
|
||||||
|
[newModel setName: [[adaptor connectionDictionary] objectForKey:@"databaseName"]];
|
||||||
|
else
|
||||||
|
[newModel setName: [[[adaptor connectionDictionary] objectForKey:@"databasePath"] lastPathComponent]];
|
||||||
[channel closeChannel];
|
[channel closeChannel];
|
||||||
[self newDocumentWithModel:newModel];
|
[self newDocumentWithModel:newModel];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
* EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
|
* EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
|
||||||
implement describeModelWithTableNames:, inspired from the
|
implement describeModelWithTableNames:, inspired from the
|
||||||
PostgreSQLChannel.m
|
PostgreSQLChannel.m
|
||||||
|
* Apps/EOModelEditor/EOModelEditorApp.m set the model name
|
||||||
|
correctly for SQLite3 databases too, use the file name
|
||||||
|
|
||||||
2013-03-14: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
2013-03-14: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||||
* EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m
|
* EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue