From 6774a2fdff9fd89e263c972ba1af0bd5f040c47c Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Fri, 14 Feb 2020 17:00:06 -0500 Subject: [PATCH] default load as not null --- index.js | 2 +- route_sql/build/build_fcpool.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index d4bb9b0..12d8e1b 100644 --- a/index.js +++ b/index.js @@ -129,7 +129,7 @@ server.get('/scenario_package', bodyParser.json(), function(req, res) { //parse the where clause into the main sql statement sql = sql.replace(new RegExp("where_clause", 'g'), w) //execute the sql and send the result - //console.log(sql); + console.log(sql); Postgres.FirstRow(sql, [], res) }; }) diff --git a/route_sql/build/build_fcpool.sql b/route_sql/build/build_fcpool.sql index 77440a2..8629732 100644 --- a/route_sql/build/build_fcpool.sql +++ b/route_sql/build/build_fcpool.sql @@ -101,8 +101,8 @@ SELECT ,version ,iter ,null::int logid - ,null::text "comment" - ,null::text module + ,''::text "comment" + ,''::text module FROM rlarp.osmf_dev o LEFT OUTER JOIN lgdat.cust bc ON