From 70dd3310811dfde734ea1c28f84ca203eaa86194 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 5 Oct 2018 13:49:30 -0400 Subject: [PATCH] grab tests from yeclose branch --- test3 | 2 +- test4 | 1 + test5 | 41 +++++++++++++++++++++++++++++++++++++++++ test6 | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 test4 create mode 100644 test5 create mode 100644 test6 diff --git a/test3 b/test3 index ad4076e..56da64f 100644 --- a/test3 +++ b/test3 @@ -36,6 +36,6 @@ $${ "module": "MHI", "offset": "h.dcard", "transaction": "purchase", - "date": "2018-11-01" + "date": "2018-12-01" } }$$::jsonb bpr \ No newline at end of file diff --git a/test4 b/test4 new file mode 100644 index 0000000..ae37f07 --- /dev/null +++ b/test4 @@ -0,0 +1 @@ +update evt.acct set prop = '{"func":"netinc"}' where acct in ('h.food','h.maint.cars'); \ No newline at end of file diff --git a/test5 b/test5 new file mode 100644 index 0000000..2af7246 --- /dev/null +++ b/test5 @@ -0,0 +1,41 @@ +insert into evt.bpr(bpr) + SELECT +$${ + "gl": { + "lines": [ + { + "amount": 10.00, + "account": "h.maint.cars" + }, + { + "amount": -10.00, + "account": "h.dcard" + } + ], + "jpath": [ + [ + "{item,0}", + "{header}" + ], + [ + "{item,0}", + "{header}" + ] + ] + }, + "item": [ + { + "item": "light bulb", + "amount": 10.00, + "reason": "repair", + "account": "h.maint.cars" + } + ], + "header": { + "entity": "home", + "module": "MHI", + "offset": "h.dcard", + "transaction": "purchase", + "date": "2019-02-01" + } +}$$::jsonb bpr \ No newline at end of file diff --git a/test6 b/test6 new file mode 100644 index 0000000..bb51cf0 --- /dev/null +++ b/test6 @@ -0,0 +1,41 @@ +insert into evt.bpr(bpr) + SELECT +$${ + "gl": { + "lines": [ + { + "amount": 10.00, + "account": "h.maint.cars" + }, + { + "amount": -10.00, + "account": "h.dcard" + } + ], + "jpath": [ + [ + "{item,0}", + "{header}" + ], + [ + "{item,0}", + "{header}" + ] + ] + }, + "item": [ + { + "item": "light bulb", + "amount": 10.00, + "reason": "repair", + "account": "h.maint.cars" + } + ], + "header": { + "entity": "home", + "module": "MHI", + "offset": "h.dcard", + "transaction": "purchase", + "date": "2020-02-01" + } +}$$::jsonb bpr \ No newline at end of file