From 7a15c836c98e3ae4cf62e5bfbccc2a50eb9d31a3 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Sun, 29 Sep 2024 11:28:31 -0700 Subject: [PATCH] Fix example json_table code in pg_json_ops extension --- lib/sequel/extensions/pg_json_ops.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sequel/extensions/pg_json_ops.rb b/lib/sequel/extensions/pg_json_ops.rb index 24ee99753..417a930a8 100644 --- a/lib/sequel/extensions/pg_json_ops.rb +++ b/lib/sequel/extensions/pg_json_ops.rb @@ -147,7 +147,7 @@ # String :bar # Integer :baz # end -# # json_table('$.foo' COLUMNS(bar text, baz integer)) +# # json_table("jsonb_column", '$.foo' COLUMNS("bar" text, "baz" integer)) # # j.table('$.foo', passing: {a: 1}) do # ordinality :id @@ -155,9 +155,9 @@ # nested '$.baz' do # Integer :q, path: '$.quux', on_empty: :error # end -# exists :x, on_error: false +# exists :x, Date, on_error: false # end -# # json_table("j", '$.foo' PASSING 1 AS a COLUMNS( +# # json_table(jsonb_column, '$.foo' PASSING 1 AS a COLUMNS( # # "id" FOR ORDINALITY, # # "bar" text FORMAT JSON EMPTY OBJECT ON ERROR, # # NESTED '$.baz' COLUMNS(