Additional reformatting
authorMaciek Sakrejda <[email protected]>
Thu, 6 Mar 2014 21:15:39 +0000 (13:15 -0800)
committerMaciek Sakrejda <[email protected]>
Thu, 6 Mar 2014 23:46:14 +0000 (15:46 -0800)
src/test/regress/expected/jsonb.out
src/test/regress/sql/jsonb.sql

index c88ded7f978efffc5ba702c30903f876b170dd10..dce59eb2fda5a96a84feca7ad2165d5a9b53ac7e 100644 (file)
@@ -361,33 +361,25 @@ SELECT jsonb_object_keys(test_json) FROM test_jsonb WHERE json_type = 'object';
 (3 rows)
 
 -- nulls
-select (test_json->'field3') is null as expect_false
-from test_jsonb
-where json_type = 'object';
+select (test_json->'field3') is null as expect_false from test_jsonb where json_type = 'object';
  expect_false 
 --------------
  f
 (1 row)
 
-select (test_json->>'field3') is null as expect_true
-from test_jsonb
-where json_type = 'object';
+select (test_json->>'field3') is null as expect_true from test_jsonb where json_type = 'object';
  expect_true 
 -------------
  t
 (1 row)
 
-select (test_json->3) is null as expect_false
-from test_jsonb
-where json_type = 'array';
+select (test_json->3) is null as expect_false from test_jsonb where json_type = 'array';
  expect_false 
 --------------
  f
 (1 row)
 
-select (test_json->>3) is null as expect_true
-from test_jsonb
-where json_type = 'array';
+select (test_json->>3) is null as expect_true from test_jsonb where json_type = 'array';
  expect_true 
 -------------
  t
index bead7d82a95e949f2878fe748069a99c623e43e5..22ee2969862e2b6df4bd990edc3c52a60a7924ed 100644 (file)
@@ -90,31 +90,16 @@ SELECT jsonb_object_keys(test_json) FROM test_jsonb WHERE json_type = 'object';
 
 -- nulls
 
-select (test_json->'field3') is null as expect_false
-from test_jsonb
-where json_type = 'object';
-
-select (test_json->>'field3') is null as expect_true
-from test_jsonb
-where json_type = 'object';
-
-select (test_json->3) is null as expect_false
-from test_jsonb
-where json_type = 'array';
-
-select (test_json->>3) is null as expect_true
-from test_jsonb
-where json_type = 'array';
-
+select (test_json->'field3') is null as expect_false from test_jsonb where json_type = 'object';
+select (test_json->>'field3') is null as expect_true from test_jsonb where json_type = 'object';
+select (test_json->3) is null as expect_false from test_jsonb where json_type = 'array';
+select (test_json->>3) is null as expect_true from test_jsonb where json_type = 'array';
 
 -- array length
 
 SELECT jsonb_array_length('[1,2,3,{"f1":1,"f2":[5,6]},4]');
-
 SELECT jsonb_array_length('[]');
-
 SELECT jsonb_array_length('{"f1":1,"f2":[5,6]}');
-
 SELECT jsonb_array_length('4');
 
 -- each