rebuild hunt so that path is in curlies

This commit is contained in:
Paul Trowbridge 2018-05-30 23:58:35 -04:00
parent ac3fccf84c
commit 7b543dce39
2 changed files with 9 additions and 8 deletions

View File

@ -8,32 +8,32 @@
"schemas": { "schemas": {
"default": [ "default": [
{ {
"path": "Date", "path": "{Date}",
"type": "date", "type": "date",
"column_name": "Date" "column_name": "Date"
}, },
{ {
"path": "Reference Number", "path": "{Reference Number}",
"type": "numeric", "type": "numeric",
"column_name": "Reference Number" "column_name": "Reference Number"
}, },
{ {
"path": "Payee Name", "path": "{Payee Name}",
"type": "text", "type": "text",
"column_name": "Payee Name" "column_name": "Payee Name"
}, },
{ {
"path": "Memo", "path": "{Memo}",
"type": "text", "type": "text",
"column_name": "Memo" "column_name": "Memo"
}, },
{ {
"path": "Amount", "path": "{Amount}",
"type": "text", "type": "numeric",
"column_name": "Amount" "column_name": "Amount"
}, },
{ {
"path": "Category Name", "path": "{Category Name}",
"type": "text", "type": "text",
"column_name": "Cateogry Name" "column_name": "Cateogry Name"
} }

View File

@ -1,3 +1,4 @@
DROP FUNCTION IF EXISTS tps.build_srce_view_sql(text, text);
CREATE OR REPLACE FUNCTION tps.build_srce_view_sql(_srce text, _schema text) RETURNS TEXT CREATE OR REPLACE FUNCTION tps.build_srce_view_sql(_srce text, _schema text) RETURNS TEXT
AS AS
$f$ $f$
@ -28,4 +29,4 @@ RAISE NOTICE '%',_sql;
END END
$f$ $f$
LANGUAGE plpgsql; LANGUAGE plpgsql;