mysql analyser & comparer fix

This commit is contained in:
SPRINX0\prochazka
2024-08-28 16:53:20 +02:00
parent d243af323e
commit 791a2e8cd4
2 changed files with 20 additions and 29 deletions

View File

@@ -8,6 +8,8 @@ function quoteDefaultValue(value) {
if (value == null) return value;
if (!isNaN(value) && !isNaN(parseFloat(value))) return value;
if (_.isString(value) && value.startsWith('CURRENT_')) return value;
// keep NULL as default value. Is this really necessary?
if (_.isString(value) && value?.toUpperCase() == 'NULL') return 'NULL';
if (_.isString(value)) {
return `'${value.replace("'", "\\'")}'`;
}