From 902fbbf29ab6d0a784af7c30efa86b433d03c469 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Wed, 14 Jul 2021 20:58:42 +0200 Subject: [PATCH] #142 --- plugins/dbgate-plugin-postgres/src/frontend/Dumper.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js b/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js index 36182f71f..27e67d3a7 100644 --- a/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js +++ b/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js @@ -61,6 +61,13 @@ class Dumper extends SqlDumper { } super.columnDefinition(col, options); } + + putValue(value) { + if (value === true) this.putRaw('true'); + else if (value === false) this.putRaw('false'); + else super.putValue(value); + } + } module.exports = Dumper;