We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58ce604 + db7682b commit 29a9548Copy full SHA for 29a9548
1 file changed
lib/migration.js
@@ -16,9 +16,9 @@ module.exports = function(IBMDB) {
16
var self = this;
17
var sql = 'SELECT COLNAME AS NAME, TYPENAME AS DATATYPE, ' +
18
'COLNO, LENGTH AS DATALENGTH, NULLS FROM SYSCAT.COLUMNS ' +
19
- 'WHERE TABNAME LIKE \'' +
+ 'WHERE TRIM(TABNAME) LIKE \'' +
20
self.table(model) + '\' ' +
21
- 'AND TABSCHEMA LIKE \'' +
+ 'AND TRIM(TABSCHEMA) LIKE \'' +
22
self.schema + '\'' +
23
' ORDER BY COLNO';
24
this.execute(sql, function(err, fields) {
0 commit comments