Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
Constraint & Alter Table on VarChar Field

Constraint & Alter Table on VarChar Field

2007-06-21       - By Lukasz Misztal

 Back
Reply:     1     2  

Hi,

i try execute (example) SQL statement:

CREATE TABLE "TableT1"
(
  "MT_ID"  Fixed (10,0)  NOT NULL  DEFAULT SERIAL (1),
  "MT_Name"  Varchar (200) UNICODE  NOT NULL,
  "MT_Value"  Fixed (15,5)  NOT NULL  DEFAULT           1.00000,
  PRIMARY KEY ("MT_ID"),
  CONSTRAINT "CS_Value" CHECK "MT_Value" <> 0
)
//
ALTER TABLE "TableT1" MODIFY ("MT_Name" VARCHAR (60) UNICODE)
//
ALTER TABLE "TableT1" MODIFY ("MT_Name" VARCHAR (80) UNICODE)
//
drop table "TableT1"

and I get error:

Auto Commit: On, SQL Mode: Internal, Isolation Level: Serializable
Syntax error or access violation;-3014 POS(2) Invalid end of SQL statement

Question is:
1. why constraint prevents from second alter table?
2. why MT_Value (not "MT_Value") works fine?

It is a bug?

Best regards,

Lukasz

Tested on:
MAXDB 7.6.00.34, WIN XP Prof,
MAXDB 7.6.00.37, WIN XP Prof,
SQL Studio 7.6.00.27 (123692)





--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/maxdb?unsub=mysql@(protected)