Skip to content
Permalink
Browse files

test db stuff json

  • Loading branch information
signedav authored and nyalldawson committed Sep 14, 2018
1 parent f92a2ad commit e972e21a099a4ff3c0789b4fddd45e7e39d10b29
Showing with 16 additions and 0 deletions.
  1. +1 −0 tests/testdata/provider/testdata_pg.sh
  2. +15 −0 tests/testdata/provider/testdata_pg_json.sql
@@ -12,6 +12,7 @@ SCRIPTS="
tests/testdata/provider/testdata_pg_array.sql
tests/testdata/provider/testdata_pg_raster.sql
tests/testdata/provider/testdata_pg_domain.sql
tests/testdata/provider/testdata_pg_json.sql
"

dropdb qgis_test 2> /dev/null || true
@@ -0,0 +1,15 @@

DROP TABLE IF EXISTS qgis_test.json;

CREATE TABLE qgis_test.json
(
pk SERIAL NOT NULL PRIMARY KEY,
jvalue json,
jbvalue jsonb
);

INSERT INTO qgis_test.json(jvalue, jbvalue)
VALUES
('[1,2,3]', '[4,5,6]'),
('{"a":1,"b":2}', '{"c":4,"d":5}'),
('123', '456');

0 comments on commit e972e21

Please sign in to comment.
You can’t perform that action at this time.