diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-11-20 11:14:58 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-11-20 11:14:58 +0000 |
commit | 31773f157bf8164364649b5f470f52dece0a4317 (patch) | |
tree | 33d0f7eef45303ab68cf08ab381ce5e5e36c5240 /yql/essentials/tests/postgresql/cases/insert.sql | |
parent | 2c7938962d8689e175574fc1e817c05049f27905 (diff) | |
parent | eff600952d5dfe17942f38f510a8ac2b203bb3a5 (diff) | |
download | ydb-31773f157bf8164364649b5f470f52dece0a4317.tar.gz |
Merge branch 'rightlib' into mergelibs-241120-1113
Diffstat (limited to 'yql/essentials/tests/postgresql/cases/insert.sql')
-rw-r--r-- | yql/essentials/tests/postgresql/cases/insert.sql | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/yql/essentials/tests/postgresql/cases/insert.sql b/yql/essentials/tests/postgresql/cases/insert.sql new file mode 100644 index 0000000000..deceb2192b --- /dev/null +++ b/yql/essentials/tests/postgresql/cases/insert.sql @@ -0,0 +1,25 @@ +-- +-- insert with DEFAULT in the target_list +-- +create table inserttest (col1 int4, col2 int4 NOT NULL, col3 text default 'testing'); +-- +-- TOASTed value test +-- +insert into inserttest values(30, 50, repeat('x', 10000)); +drop table inserttest; +create table inserttest (f1 int, f2 int[], + f3 insert_test_type, f4 insert_test_type[]); +-- also check reverse-listing +create table inserttest2 (f1 bigint, f2 text); +drop table inserttest2; +drop table inserttest; +create table mlparted2 (b int not null, a int not null); +create table mlparted5a (a int not null, c text, b int not null); +create table mlparted5_b (d int, b int, c text, a int); +-- check that the message shows the appropriate column description in a +-- situation where the partitioned table is not the primary ModifyTable node +create table inserttest3 (f1 text default 'foo', f2 text default 'bar', f3 int); +drop table inserttest3; +create table donothingbrtrig_test1 (b text, a int); +create table donothingbrtrig_test2 (c text, b text, a int); +create table returningwrtest2 (b text, c int, a int); |