1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Revert "primaryKey name fix"

This reverts commit 9c408fda9c.
This commit is contained in:
Mel O'Hagan 2022-06-01 09:36:28 +01:00
parent 9c408fda9c
commit 192663c94a

View file

@ -112,9 +112,15 @@ module SnowflakeModule {
const descResp = await this.internalQuery({
sql: `DESCRIBE TABLE ${tableName};`,
})
if (tableName === "CUSTOMER") {
console.log("DESC = ", descResp)
}
for (let column of descResp) {
const columnName = column.name
if (column["primary key"] === "Y") {
const columnName = column.Field
if (
column["primary key"] === "Y" &&
primaryKeys.indexOf(column.Key) === -1
) {
primaryKeys.push(columnName)
}
const constraints = {