From 43ae8fd453532233e8e8f5ba10a8ab15d00ca083 Mon Sep 17 00:00:00 2001 From: rburgst Date: Tue, 4 Mar 2025 01:23:05 +0100 Subject: [PATCH] fix: put enum values in quotes otherwise postgres wont accept the values --- src/sqlScriptGenerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlScriptGenerator.js b/src/sqlScriptGenerator.js index 465bc7e..b918d8c 100644 --- a/src/sqlScriptGenerator.js +++ b/src/sqlScriptGenerator.js @@ -663,9 +663,9 @@ var helper = { case "A": //ARRAY return `'{${value.join()}}'`; case "R": //RANGE + case "E": //ENUM return `'${value}'`; case "B": //BOOL - case "E": //ENUM case "G": //GEOMETRIC case "I": //NETWORK ADDRESS case "N": //NUMERIC