2006-08-02 16:19:14 +02:00
|
|
|
subdir = src/interfaces/ecpg/test/sql
|
|
|
|
top_builddir = ../../../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
2006-08-13 12:18:31 +02:00
|
|
|
include $(top_srcdir)/$(subdir)/../Makefile.regress
|
2006-08-02 16:19:14 +02:00
|
|
|
|
2006-09-05 14:11:03 +02:00
|
|
|
TESTS = array array.c \
|
|
|
|
binary binary.c \
|
|
|
|
code100 code100.c \
|
|
|
|
copystdout copystdout.c \
|
2019-02-18 11:57:34 +01:00
|
|
|
createtableas createtableas.c \
|
2006-09-05 14:11:03 +02:00
|
|
|
define define.c \
|
2006-08-02 16:19:14 +02:00
|
|
|
desc desc.c \
|
2010-01-15 11:44:39 +01:00
|
|
|
sqlda sqlda.c \
|
|
|
|
describe describe.c \
|
2006-09-05 14:11:03 +02:00
|
|
|
dyntest dyntest.c \
|
2006-08-02 16:19:14 +02:00
|
|
|
dynalloc dynalloc.c \
|
|
|
|
dynalloc2 dynalloc2.c \
|
2006-09-08 15:32:29 +02:00
|
|
|
execute execute.c \
|
|
|
|
fetch fetch.c \
|
2006-08-02 16:19:14 +02:00
|
|
|
func func.c \
|
|
|
|
indicators indicators.c \
|
2007-08-14 12:01:54 +02:00
|
|
|
oldexec oldexec.c \
|
2007-03-17 20:25:24 +01:00
|
|
|
parser parser.c \
|
2006-08-02 16:19:14 +02:00
|
|
|
quote quote.c \
|
|
|
|
show show.c \
|
SQL/JSON: add standard JSON constructor functions
This commit introduces the SQL/JSON standard-conforming constructors for
JSON types:
JSON_ARRAY()
JSON_ARRAYAGG()
JSON_OBJECT()
JSON_OBJECTAGG()
Most of the functionality was already present in PostgreSQL-specific
functions, but these include some new functionality such as the ability
to skip or include NULL values, and to allow duplicate keys or throw
error when they are found, as well as the standard specified syntax to
specify output type and format.
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: 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.
Discussion: https://postgr.es/m/CAF4Au4w2x-5LTnN_bxky-mq4=WOqsGsxSpENCzHRAzSnEd8+WQ@mail.gmail.com
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
2023-03-29 12:11:36 +02:00
|
|
|
sqljson sqljson.c \
|
Add basic JSON_TABLE() functionality
JSON_TABLE() allows JSON data to be converted into a relational view
and thus used, for example, in a FROM clause, like other tabular
data. Data to show in the view is selected from a source JSON object
using a JSON path expression to get a sequence of JSON objects that's
called a "row pattern", which becomes the source to compute the
SQL/JSON values that populate the view's output columns. Column
values themselves are computed using JSON path expressions applied to
each of the JSON objects comprising the "row pattern", for which the
SQL/JSON query functions added in 6185c9737cf4 are used.
To implement JSON_TABLE() as a table function, this augments the
TableFunc and TableFuncScanState nodes that are currently used to
support XMLTABLE() with some JSON_TABLE()-specific fields.
Note that the JSON_TABLE() spec includes NESTED COLUMNS and PLAN
clauses, which are required to provide more flexibility to extract
data out of nested JSON objects, but they are not implemented here
to keep this commit of manageable size.
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>
Author: Jian He <jian.universality@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, Jian He
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
2024-04-04 12:57:08 +02:00
|
|
|
sqljson_jsontable sqljson_jsontable.c \
|
2019-02-16 10:55:17 +01:00
|
|
|
insupd insupd.c \
|
2017-03-13 20:47:27 +01:00
|
|
|
twophase twophase.c \
|
2019-02-18 10:20:31 +01:00
|
|
|
insupd insupd.c \
|
2021-03-24 20:48:20 +01:00
|
|
|
declare declare.c \
|
2019-05-22 04:58:29 +02:00
|
|
|
bytea bytea.c \
|
|
|
|
prepareas prepareas.c
|
2006-08-02 16:19:14 +02:00
|
|
|
|
|
|
|
all: $(TESTS)
|
|
|
|
|
2014-05-09 04:34:51 +02:00
|
|
|
oldexec.c: oldexec.pgc $(ECPG_TEST_DEPENDENCIES)
|
|
|
|
$(ECPG) -r questionmarks -o $@ $<
|