This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | create sql is not quite correct | ||
---|---|---|---|
Product: | db | Reporter: | medeag |
Component: | Code | Assignee: | Libor Fischmeistr <lfischmeistr> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
medeag
2011-12-03 10:17:17 UTC
You didn't mention your database server - but you have to know, that SQL is not as standardized as would be nice. Every vendor interprets SQL a bit different. In this case I had a look at the mysql documentation and found this: "[...]. The CHECK clause is parsed but ignored by all storage engines.[...]" from: http://dev.mysql.com/doc/refman/5.1/en/alter-table.html So there is no representation of the check constraint after the creation of the table. If you use mysql this bug can be closed as notabug, if you use another dbms more checks are needed. i was not aware of mysql behavior, thanks for information, but i checked also on postgresql had this capability (e.g. see CREATE TABLE distributors ( did integer, name varchar(40) CONSTRAINT con1 CHECK (did > 100 AND name <> '') ); from http://www.postgresql.org/docs/8.4/static/sql-createtable.html ) but still no check there... |