Commit b450b778 by Dominik Henneke

Use buildTableConstraint instead of buildSchemaConstraint to find the datatype…

Use buildTableConstraint instead of buildSchemaConstraint to find the datatype of a column if using a table from a different database schema
parent 0c855fb9
......@@ -151,8 +151,7 @@ table_schema IN (
buildDatatypeQuery(column: string) {
let query = 'SELECT udt_name FROM information_schema.columns WHERE ';
query += this.buildSchemaConstraint();
query += ' AND table_name = ' + this.quoteIdentAsLiteral(this.target.table);
query += this.buildTableConstraint(this.target.table);
query += ' AND column_name = ' + this.quoteIdentAsLiteral(column);
return query;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment