1. In schema tree, select multiple columns for any database and then right click to get pop-up menu.
2. Select "Generate Template Script" in pop-up menu. Note that the Object Name column in the Generate Template Script dialog is in the format of "tableName.columnName".
3. Enter some template script with "{OBJECT_NAME}" and hit OK.
4. Note that the generated script has the table name only for "{OBJECT_NAME}". See the "Template Script" attachment for detail.
|
39 KB
Reviewed GenerateTemplateScriptDialog related code, this problem has something to do with how column-name is stored/retrieved to/from SchemaObject which is the object passed to GenerateTemplateScriptDialog for processing. Related methods:
* xxxColumnNode.getObject() where xxx is DB Server specific prefix (e.g. My, PG, Greenplum, etc)
* SchemaObject.createSchemaObject(...)
* ScriptMultipleObjectsModel.getValueAt(int, int)
* GenerateTemplateScriptDialog.performAction(List)
Fixed, SVN r30463.
The name displayed in the 'Object Name' column is a 'Display Name', I assumed this is not the name we want to use for replacing {OBJECT_NAME} token. SVN r30463 only substituted {OBJECT_NAME} by actual column name but not the display name.
Issue #7985 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build trunk/30463 |
No time estimate |
Reviewed GenerateTemplateScriptDialog related code, this problem has something to do with how column-name is stored/retrieved to/from SchemaObject which is the object passed to GenerateTemplateScriptDialog for processing. Related methods:
* xxxColumnNode.getObject() where xxx is DB Server specific prefix (e.g. My, PG, Greenplum, etc)
* SchemaObject.createSchemaObject(...)
* ScriptMultipleObjectsModel.getValueAt(int, int)
* GenerateTemplateScriptDialog.performAction(List)
Fixed, SVN r30463.
The name displayed in the 'Object Name' column is a 'Display Name', I assumed this is not the name we want to use for replacing {OBJECT_NAME} token. SVN r30463 only substituted {OBJECT_NAME} by actual column name but not the display name.