Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread sql statement error
Fri, Mar 3 2006 11:11 AMPermanent Link

"Mirco M."
in 4.20 version i use this statement:

CREATE TABLE IF NOT EXISTS prova (
idx AUTOINC,
transp INTEGER,
data TIMESTAMP
PRIMARY KEY (idx) COMPRESS NONE )


In 4.22 version i receive an error at line 4
If i put a comma at the end of line all work fine.
Is this normal?

thanks!

Fri, Mar 3 2006 12:42 PMPermanent Link

"Halim Boumedjirek"
I remember having this issue too.

"Mirco M." <m.malagoli@matx.it> wrote in message
news:404BDCB0-6FD3-4B19-B80C-6F8307273F11@news.elevatesoft.com...
> in 4.20 version i use this statement:
>
> CREATE TABLE IF NOT EXISTS prova (
> idx AUTOINC,
> transp INTEGER,
> data TIMESTAMP
> PRIMARY KEY (idx) COMPRESS NONE )
>
>
> In 4.22 version i receive an error at line 4
> If i put a comma at the end of line all work fine.
> Is this normal?
>
> thanks!
>

Fri, Mar 3 2006 3:05 PMPermanent Link

Michael Baytalsky

> In 4.22 version i receive an error at line 4
> If i put a comma at the end of line all work fine.
> Is this normal?
IMO, yes, this is what the manual says (or at least this is
how I read it Wink and this is what seem natural as far as
syntax concerned.


Michael
Mon, Mar 6 2006 11:51 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mirco,

<< in 4.20 version i use this statement:

CREATE TABLE IF NOT EXISTS prova (
idx AUTOINC,
transp INTEGER,
data TIMESTAMP
PRIMARY KEY (idx) COMPRESS NONE )

In 4.22 version i receive an error at line 4 If i put a comma at the end of
line all work fine. Is this normal? >>

Yes.  In fact 4.20 and earlier were incorrect and should have raised an
error without the comma.  Constraints must be added just like a column with
a comma separating them from other columns/constraints.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image