fix(mysql): keep view edit draft formatted
This commit is contained in:
1 parent
6988f9878f
commit
2f2303e1d6
4 files changed
+49
-4
No files matched your search
@@ -60,6 +60,11 @@ export async function buildExecutableObjectSourceSql(input: BuildEditableObjectS
|
||||
return api.buildExecutableObjectSourceSql(input);
|
||||
}
|
||||
|
||||
export function resolveObjectSourceEditDraft(databaseType: DatabaseType | undefined, objectType: ObjectSourceKind, formatted: string, editable: string): string {
|
||||
if (databaseType === "mysql" && objectType === "VIEW" && formatted.trim()) return formatted;
|
||||
return editable;
|
||||
}
|
||||
|
||||
export function buildEditableObjectSource(input: BuildEditableObjectSourceSqlInput): Promise<string> {
|
||||
return api.buildEditableObjectSource(input);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user