Uniquely Indexed Column Problem
Posted: 01.09.2009, 13:52
Hello everybody!
Recently i figure with a strange problem...
I have a form with a grid and some DBEdits. I have ZConnection, ZQuery, DataSource and a ZUpdateSQL. Everything is correctly linked, and all data types on the persistent fields (on ZQuery) are correct...
The table structure is
Well...
I'm using MySQL Embed as database. The question is:
Why, I cannot type into the DBEdits linked to "VA_DIRETORIO" and "VA_NOME" the characters ' (single quote) and \ (backslash)?
I know, i cannot do this into a ordinary SQL statement (INSERT INTO) but using the Zeos Components and the BDE components i would be, right... The proof of this is the field "VA_DESCRICAO" i *CAN* type the mentioned characters and everything works OK...
Recently i figure with a strange problem...
I have a form with a grid and some DBEdits. I have ZConnection, ZQuery, DataSource and a ZUpdateSQL. Everything is correctly linked, and all data types on the persistent fields (on ZQuery) are correct...
The table structure is
Code: Select all
CREATE TABLE `sistemas` (
`BI_SISTEMAS_ID` bigint(20) NOT NULL AUTO_INCREMENT,
`VA_NOME` varchar(30) NOT NULL,
`VA_DIRETORIO` varchar(128) NOT NULL,
`VA_DESCRICAO` varchar(64) DEFAULT NULL,
PRIMARY KEY (`BI_SISTEMAS_ID`),
UNIQUE KEY `VA_NOME_UC` (`VA_NOME`),
UNIQUE KEY `VA_DIRETORIO_UC` (`VA_DIRETORIO`)
) ENGINE=InnoDB CHARSET=latin1
I'm using MySQL Embed as database. The question is:
Why, I cannot type into the DBEdits linked to "VA_DIRETORIO" and "VA_NOME" the characters ' (single quote) and \ (backslash)?
I know, i cannot do this into a ordinary SQL statement (INSERT INTO) but using the Zeos Components and the BDE components i would be, right... The proof of this is the field "VA_DESCRICAO" i *CAN* type the mentioned characters and everything works OK...