Skip to content
Browse files

Now builds ok as 9.1 extension

  • Loading branch information...
1 parent 2c64200 commit 68dab3abb9b8a28c6536849f64f20b3bc2434990 @claesjac committed Sep 5, 2011
Showing with 3 additions and 5 deletions.
  1. +1 −1 Makefile
  2. 0 pg-json.sql → pg-json--0.01.sql
  3. +1 −1 pg-json.control
  4. +1 −3 test.sql
View
2 Makefile
@@ -2,7 +2,7 @@ MODULE_big = pg-json
OBJS = pg-json.o
EXTENSION = pg-json
-DATA = pg-json.sql
+DATA = pg-json--0.01.sql
SHLIB_LINK += -ljansson
View
0 pg-json.sql → pg-json--0.01.sql
File renamed without changes.
View
2 pg-json.control
@@ -9,6 +9,6 @@
#####################################################################
comment = 'A json data type'
-default_version = '0.0.1'
+default_version = '0.01'
module_pathname = '$libdir/pg-json'
relocatable = true
View
4 test.sql
@@ -12,14 +12,12 @@ SELECT '{"foo":"bar"}'::json ~ 'foo' = 'bar';
SELECT json_equals('{"foo":"bar"}', '{"foo":"bar"}');
-- = is the operator version of json_equals
-
SELECT '{"foo":"bar"}'::json = '{"foo":"bar"}'::json;
SELECT '[1,2,3]'::json = '[1,2,3]'::json;
SELECT '{"foo": [1,2,3]}'::json = '{"foo": [1,2,3]}'::json;
SELECT '{"a": "b", "c": "d"}'::json = '{"c": "d", "a": "b"}'::json;
-SELECT json_equals('{"foo":"bar"}', '{"foo2":"bar2"}');
+SELECT json_not_equals('{"foo":"bar"}', '{"foo2":"bar2"}');
-- != is the operator version of json_not_equals
-
SELECT '{"foo": [1,2,3]}'::json != '{"foo": [2,3,4]}'::json;

0 comments on commit 68dab3a

Please sign in to comment.
Something went wrong with that request. Please try again.