insert into salt table fails with ERROR[1123]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Released
|
High
|
Hans Zeller |
Bug Description
Create salt table with primary key on varchar ucs2 column. Insert into salt table fails with ERROR[1123].
From sqlci:
>>CREATE TABLE f00(
+> colkey int not null,
+> colvchrucs2 varchar(100) character set ucs2 not null,
+> primary key (colvchrucs2))
+> salt using 3 partitions;
--- SQL operation complete.
>>
>>INSERT INTO f00 VALUES (1, 'abcde'), (2, 'fghij'), (3, 'klmnopqrs'), (4, 'tuvwxyz'), (5, 'abc@#$
*** ERROR[1123] Not all of the partition key values () for object TRAFODION.
*** ERROR[8822] The statement was not prepared.
>>
>>CREATE TABLE f01(
+> colkey int not null,
+> colvchrucs2 varchar(100) character set ucs2 not null,
+> primary key (colvchrucs2));
--- SQL operation complete.
>>
>>INSERT INTO f01 VALUES (1, 'abcde'), (2, 'fghij'), (3, 'klmnopqrs'), (4, 'tuvwxyz'), (5, 'abc@#$
--- 5 row(s) inserted.
MY_SQROOT=
who@<email address hidden>
JAVA_HOME=
linux=2.
redhat=6.3
Release 0.7.0 (Build release [39961], branch 39961-project/
To reproduce, in sqlci issue:
DROP TABLE f00;
DROP TABLE f01;
CREATE TABLE f00(
salt using 3 partitions;
INSERT INTO f00 VALUES (1, 'abcde'), (2, 'fghij'), (3, 'klmnopqrs'), (4, 'tuvwxyz'), (5, 'abc@#$
CREATE TABLE f01(
INSERT INTO f01 VALUES (1, 'abcde'), (2, 'fghij'), (3, 'klmnopqrs'), (4, 'tuvwxyz'), (5, 'abc@#$
Also, try showddl and invoke.
Then rerun reproducible script again but this time with primary key DESCENDING.
Again, try showddl and invoke.
information type: | Proprietary → Public |
Changed in trafodion: | |
status: | New → In Progress |
Changed in trafodion: | |
milestone: | none → r0.8 |
status: | Fix Committed → Fix Released |
Changed in trafodion: | |
milestone: | r0.8 → r0.9 |
>>CREATE TABLE f00(
colkey int not null,
colvchrucs2 varchar(100) character set ucs2 not null,
primary key (colvchrucs2))
salt using 3 partitions;+>+>+>+>
--- SQL operation complete.
>>showddl f00;
*** ERROR[1123] Not all of the partition key values () for object TRAFODION. SEABASE. F00 could be processed. Please verify that the correct key value data types were specified.
--- SQL operation failed with errors.
>>invoke f00;
*** ERROR[1123] Not all of the partition key values () for object TRAFODION. SEABASE. F00 could be processed. Please verify that the correct key value data types were specified.
--- SQL operation failed with errors.
>>drop table f00;
*** ERROR[1389] Object TRAFODION. SEABASE. F00 does not exist in Trafodion.
--- SQL operation failed with errors.