|
|
@@ -674,7 +674,7 @@ public class Controller extends BaseClass {
|
|
|
public String[] getTableColumns(String tablename) {
|
|
|
tablename = tablename.toLowerCase();
|
|
|
if (!tableColumnRowmap.containsKey(tablename)) {
|
|
|
- Rows rows = dbConnect.runSqlQuery("select a.name as [column],b.name as type from syscolumns a,systypes b where a.id=object_id('tagents_msgchangeapp') and a.xtype=b.xtype");
|
|
|
+ Rows rows = dbConnect.runSqlQuery("select a.name as [column],b.name as type from syscolumns a,systypes b where a.id=object_id('" + tablename + "') and a.xtype=b.xtype");
|
|
|
Row columnRow = new Row();
|
|
|
for (Row row : rows) {
|
|
|
columnRow.put(row.getString("column").toLowerCase(), row.getString("type").toLowerCase());
|
|
|
@@ -692,7 +692,7 @@ public class Controller extends BaseClass {
|
|
|
tablename = tablename.toLowerCase();
|
|
|
fieldname = fieldname.toLowerCase();
|
|
|
if (!tableColumnRowmap.containsKey(tablename)) {
|
|
|
- Rows rows = dbConnect.runSqlQuery("select a.name as [column],b.name as type from syscolumns a,systypes b where a.id=object_id('tagents_msgchangeapp') and a.xtype=b.xtype");
|
|
|
+ Rows rows = dbConnect.runSqlQuery("select a.name as [column],b.name as type from syscolumns a,systypes b where a.id=object_id('" + tablename + "') and a.xtype=b.xtype");
|
|
|
Row columnRow = new Row();
|
|
|
for (Row row : rows) {
|
|
|
columnRow.put(row.getString("column").toLowerCase(), row.getString("type").toLowerCase());
|
|
|
@@ -705,5 +705,4 @@ public class Controller extends BaseClass {
|
|
|
return "";
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|