|
|
@ -620,7 +620,8 @@ export class MssqlUi { |
|
|
|
} { |
|
|
|
} { |
|
|
|
const colProp: any = {}; |
|
|
|
const colProp: any = {}; |
|
|
|
switch (col.uidt) { |
|
|
|
switch (col.uidt) { |
|
|
|
case 'ID': { |
|
|
|
case 'ID': |
|
|
|
|
|
|
|
{ |
|
|
|
const isAutoIncId = idType === 'AI'; |
|
|
|
const isAutoIncId = idType === 'AI'; |
|
|
|
const isAutoGenId = idType === 'AG'; |
|
|
|
const isAutoGenId = idType === 'AG'; |
|
|
|
colProp.dt = isAutoGenId ? 'varchar' : 'int'; |
|
|
|
colProp.dt = isAutoGenId ? 'varchar' : 'int'; |
|
|
@ -628,7 +629,7 @@ export class MssqlUi { |
|
|
|
colProp.un = isAutoIncId; |
|
|
|
colProp.un = isAutoIncId; |
|
|
|
colProp.ai = isAutoIncId; |
|
|
|
colProp.ai = isAutoIncId; |
|
|
|
colProp.rqd = true; |
|
|
|
colProp.rqd = true; |
|
|
|
colProp.meta = isAutoGenId ? {ag: 'nc'} : undefined; |
|
|
|
colProp.meta = isAutoGenId ? { ag: 'nc' } : undefined; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'ForeignKey': |
|
|
|
case 'ForeignKey': |
|
|
@ -908,6 +909,6 @@ export class MssqlUi { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static getUnsupportedFnList() { |
|
|
|
static getUnsupportedFnList() { |
|
|
|
return []; |
|
|
|
return ['XOR', 'REGEX_MATCH', 'REGEX_EXTRACT', 'REGEX_REPLACE', 'VALUE']; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|