postgresql/src/interfaces/ecpg/test/sql
Amit Langote 03734a7fed Add more SQL/JSON constructor functions
This Patch introduces three SQL standard JSON functions:

JSON()
JSON_SCALAR()
JSON_SERIALIZE()

JSON() produces json values from text, bytea, json or jsonb values,
and has facilitites for handling duplicate keys.

JSON_SCALAR() produces a json value from any scalar sql value,
including json and jsonb.

JSON_SERIALIZE() produces text or bytea from input which containis
or represents json or jsonb;

For the most part these functions don't add any significant new
capabilities, but they will be of use to users wanting standard
compliant JSON handling.

Catversion bumped as this changes ruleutils.c.

Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
Author: Teodor Sigaev <teodor@sigaev.ru>
Author: Oleg Bartunov <obartunov@gmail.com>
Author: Alexander Korotkov <aekorotkov@gmail.com>
Author: Andrew Dunstan <andrew@dunslane.net>
Author: Amit Langote <amitlangote09@gmail.com>

Reviewers have included (in no particular order) Andres Freund, Alexander
Korotkov, Pavel Stehule, Andrew Alsup, Erik Rijkers, Zihong Yu,
Himanshu Upadhyaya, Daniel Gustafsson, Justin Pryzby, Álvaro Herrera,
Peter Eisentraut

Discussion: https://postgr.es/m/cd0bb935-0158-78a7-08b5-904886deac4b@postgrespro.ru
Discussion: https://postgr.es/m/20220616233130.rparivafipt6doj3@alap3.anarazel.de
Discussion: https://postgr.es/m/abd9b83b-aa66-f230-3d6d-734817f0995d%40postgresql.org
Discussion: https://postgr.es/m/CA+HiwqE4XTdfb1nW=Ojoy_tQSRhYt-q_kb6i5d4xcKyrLC1Nbg@mail.gmail.com
2023-07-26 17:08:33 +09:00
..
.gitignore Add missing .gitignore entries. 2023-03-29 09:16:53 -04:00
Makefile SQL/JSON: add standard JSON constructor functions 2023-03-29 12:11:36 +02:00
array.pgc Fix format truncation issue from ECPG test 2019-08-02 09:51:12 +09:00
binary.pgc Make some ecpg test cases more robust against unexpected errors that happen 2019-01-30 10:39:32 +01:00
bytea.pgc Fix ecpg crash with bytea and cursor variables. 2020-06-30 18:34:41 +02:00
code100.pgc Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
copystdout.pgc Updated parser file to the one generated by the latest version of parse.[awk|pl] from the latest version of gram.y 2008-11-13 11:54:39 +00:00
createtableas.pgc Sync ECPG's CREATE TABLE AS statement with backend's. 2019-02-18 11:57:34 +01:00
declare.pgc Improved ECPG warning as suggested by Michael Paquier and removed test case 2021-08-17 15:01:09 +02:00
define.pgc Hopefully that's it. The remaining files for ecpg regression tests. 2006-08-02 14:14:04 +00:00
desc.pgc Always use the same way to addres a descriptor in ecpg's regression tests. 2014-01-13 10:41:53 +01:00
describe.pgc Remove unnecessary parentheses in return statements 2017-09-05 14:52:55 -04:00
dynalloc.pgc Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
dynalloc2.pgc Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
dyntest.pgc Avoid premature de-doubling of quote marks in ECPG strings. 2020-10-22 18:29:46 -04:00
execute.pgc Add documentation and tests for quote marks in ECPG literal queries. 2020-10-22 18:29:46 -04:00
fetch.pgc Make some ecpg test cases more robust against unexpected errors that happen 2019-01-30 10:39:32 +01:00
func.pgc More variables gcc moans about 2009-05-20 16:39:56 +00:00
indicators.pgc More variables gcc moans about 2009-05-20 16:39:56 +00:00
insupd.pgc Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
meson.build SQL/JSON: add standard JSON constructor functions 2023-03-29 12:11:36 +02:00
oldexec.pgc Remove unnecessary parentheses in return statements 2017-09-05 14:52:55 -04:00
parser.pgc Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
prepareas.pgc Implement PREPARE AS statement for ECPG. 2019-05-22 04:58:29 +02:00
quote.pgc Make some ecpg test cases more robust against unexpected errors that happen 2019-01-30 10:39:32 +01:00
show.pgc More variables gcc moans about 2009-05-20 16:39:56 +00:00
sqlda.pgc Remove HAVE_LONG_LONG_INT 2019-11-07 13:30:04 +01:00
sqljson.pgc Add more SQL/JSON constructor functions 2023-07-26 17:08:33 +09:00
twophase.pgc Remove unnecessary parentheses in return statements 2017-09-05 14:52:55 -04:00