Not a bug.  See the 4th paragraph at
http://www.sqlite.org/lang_createtable.html#rowid

On Thu, Jul 22, 2010 at 8:03 AM, sanjiv <san...@metamation.com> wrote:

> When I use the following command string:
>    "CREATE TABLE tbl1 (Id INT CONSTRAINT PK_Id PRIMARY KEY
> AUTOINCREMENT NOT NULL ,Name VARCHAR(20) )"
> I get the following SQLite exception:
>    "AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY"
>
> wherease no exception is thrown if INT in the command is changed to
> INTEGER. As per the affinity rules, INT should be treated as INTEGER.
>
> Thanks
>
> Sanjiv
>
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>



-- 
---------------------
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to