Revision: 6153
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=6153&view=rev
Author: manningr
Date: 2011-02-05 16:03:32 +0000 (Sat, 05 Feb 2011)
Log Message:
-----------
Fixes bug #3171762 (Wrong syntax for DROP KEY). Don't "pre-qualify" the table name. Let the dialect system do it according to the user's preference.
Modified Paths:
--------------
trunk/sql12/plugins/refactoring/src/main/java/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropPrimaryKeyCommand.java
Modified: trunk/sql12/plugins/refactoring/src/main/java/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropPrimaryKeyCommand.java
===================================================================
--- trunk/sql12/plugins/refactoring/src/main/java/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropPrimaryKeyCommand.java 2011-02-05 15:15:32 UTC (rev 6152)
+++ trunk/sql12/plugins/refactoring/src/main/java/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropPrimaryKeyCommand.java 2011-02-05 16:03:32 UTC (rev 6153)
@@ -172,7 +172,11 @@
customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));
customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
customDialog.setMultiSelection();
- customDialog.setTableName(ti.getQualifiedName());
+
+ // We use simple name here so that the user can choose for themselves whether or not to qualify the
+ // table name. This also addresses Bug #3171762 which results in "double qualifying" the table name
+ // if the user's preference is to qualify table names.
+ customDialog.setTableName(ti.getSimpleName());
SQLDatabaseMetaData md = _session.getSQLConnection().getSQLMetaData();
PrimaryKeyInfo[] infos = md.getPrimaryKey(ti);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|