![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi all, Where I'am wrong when I cust and paste this example from the SQL doc : CREATE TABLE table1 ( i INTEGER NOT NULL WITH DEFAULT, str VARCHAR(10) NOT NULL WITH DEFAULT ) WITH PARTITION = (LIST ON i,str PARTITION p1 VALUES (1,'one') WITH LOCATION=(ii_database), PARTITION p2 VALUES ((2,'two'),(3,'three')) WITH LOCATION=(loc1, loc2), PARTITION p3 VALUES DEFAULT); it give me the following error : [CREATE - 0 row(s), 0.125 secs] [Error Code: 6457, SQL State: 42000] CREATE TABLE: Wrong number of value components in partitioning constant. Expected 2 components, saw 1; error near '1'. ... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.125/0.000 sec [0 successful, 0 warnings, 1 errors] |
#4
| |||
| |||
|
|
Jean-Pierre Zuate, La Fage Conseil wrote: Hi all, Where I'am wrong when I cust and paste this example from the SQL doc : CREATE TABLE table1 ( i INTEGER NOT NULL WITH DEFAULT, str VARCHAR(10) NOT NULL WITH DEFAULT ) WITH PARTITION = (LIST ON i,str PARTITION p1 VALUES (1,'one') WITH LOCATION=(ii_database), PARTITION p2 VALUES ((2,'two'),(3,'three')) WITH LOCATION=(loc1, loc2), PARTITION p3 VALUES DEFAULT); it give me the following error : [CREATE - 0 row(s), 0.125 secs] [Error Code: 6457, SQL State: 42000] CREATE TABLE: Wrong number of value components in partitioning constant. Expected 2 components, saw 1; error near '1'. ... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.125/0.000 sec [0 successful, 0 warnings, 1 errors] John Dennis already pointed out the problem here, but what you've probably noticed is that the syntax for describing a partitioning scheme is very elborate which makes it easy to make that kind of mistake. You will find a diagram of the Ingres partitioning syntax at http://www.rationalcommerce.com/uplo...tition-ref.pdf which may help. -- Roy UK Ingres User Association Conference 2009 will be on Tuesday June 9, 2009 Go to http://www.iua.org.uk/join to get on the mailing list. _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://www.kettleriverconsulting.com...fo/info-ingres |
#5
| |||
| |||
|
|
Hi all, Where I'am wrong when I cust and paste this example from the SQL doc : CREATE TABLE table1 ( i INTEGER NOT NULL WITH DEFAULT, str VARCHAR(10) NOT NULL WITH DEFAULT ) WITH PARTITION = (LIST ON i,str PARTITION p1 VALUES (1,'one') WITH LOCATION=(ii_database), PARTITION p2 VALUES ((2,'two'),(3,'three')) WITH LOCATION=(loc1, loc2), PARTITION p3 VALUES DEFAULT); it give me the following error : [CREATE - 0 row(s), 0.125 secs] [Error Code: 6457, SQL State: 42000] CREATE TABLE: Wrong number of value components in partitioning constant. Expected 2 components, saw 1; error near '1'. ... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.125/0.000 sec [0 successful, 0 warnings, 1 errors] |
#6
| |||
| |||
|
|
I have checked this syntax error against the 9.2 documentation and the SQL is correct |
#7
| |||
| |||
|
|
John Smedley wrote: I have checked this syntax error against the 9.2 documentation and the SQL is correct The rejected SQL may be consistent with the documentation but the server doesn't like it. I dimly recall this was exactly the reason I created my diagram. I also dimly recall mentioning to Karl at the time that the documentation was at least ambiguous if not incorrect. (Karl expressed deep concern I seem to remember, or something he clearly intended to be mistaken for concern anyway.) |
#8
| |||
| |||
|
|
John Smedley wrote: I have checked this syntax error against the 9.2 documentation and the SQL is correct The rejected SQL may be consistent with the documentation but the server doesn't like it. I dimly recall this was exactly the reason I created my diagram. I also dimly recall mentioning to Karl at the time that the documentation was at least ambiguous if not incorrect. (Karl expressed deep concern I seem to remember, or something he clearly intended to be mistaken for concern anyway.) |
#9
| |||||
| |||||
|
|
John Smedley wrote: I have checked this syntax error against the 9.2 documentation and |
|
SQL is correct The rejected SQL may be consistent with the documentation but the |
|
doesn't like it. I dimly recall this was exactly the reason I created my diagram. I also dimly recall mentioning to Karl at the time that |
|
documentation was at least ambiguous if not incorrect. (Karl expressed deep concern I seem to remember, or something he clearly intended to |
|
mistaken for concern anyway.) |
![]() |
| Thread Tools | |
| Display Modes | |
| |