fix(mysql): keep view edit draft formatted

This commit is contained in:
Melody Ruch authored and GitHub committed 2026-08-15 23:29:24 +08:00
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);
}