cannot update this query type

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
sommbra
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 14.09.2006, 20:53

cannot update this query type

Post by sommbra »

this error ocurring on post command..


QClients.Post;


i use the zeos 6.5.1 and mysql 4.0 on delphi 7


what's this? please :P


thanks :@
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi Sommbra.

This can have a lot of reasons. Can you give more details about the query and the table definitions? Usually it means the query contains some fields that cannot be updated. There is a workaround for that using TZUpdate components, but if you can make your query updateable that's better.

Mark
pol
Senior Boarder
Senior Boarder
Posts: 91
Joined: 13.10.2005, 08:19

Post by pol »

One of the most common causes is that you didn't set ReadOnly to false in the TQuery properties.
sommbra
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 14.09.2006, 20:53

Post by sommbra »

this sql generate the same table

CREATE TABLE `clientes` (
`Codigo_do_Cliente` int(11) NOT NULL default '0',
`Nome_do_Cliente` varchar(75) default NULL,
`Razao_Social` varchar(75) default NULL,
`Endereco_do_Cliente` varchar(100) default NULL,
`CEP_do_Cliente` varchar(20) default NULL,
`Telefone_do_Cliente` varchar(15) default NULL,
`Bairro_do_Cliente` varchar(30) default NULL,
`Cidade_do_Cliente` varchar(30) default NULL,
`Estado_do_Cliente` char(2) default NULL,
`Tipo_de_Cliente` varchar(10) default NULL,
`Sexo_do_Cliente` varchar(10) default NULL,
`CNPJ_do_Cliente` varchar(20) default NULL,
`RG_do_Cliente` varchar(20) default NULL,
`CPF_do_cliente` varchar(20) default NULL,
`Data_Ultima_Alteracao` date default NULL,
`Hora_Ultima_Alteracao` varchar(12) default NULL,
`Observacoes` longtext,
`Data_de_expedicao_RG` datetime default NULL,
`Orgao_expedidor_RG` varchar(20) default NULL,
`Titulo_Eleitoral` varchar(20) default NULL,
`Nacionalidade` varchar(30) default NULL,
`Naturalidade` varchar(30) default NULL,
`Fax_do_Cliente` varchar(15) default NULL,
`Celular_do_Cliente` varchar(15) default NULL,
`Email_do_Cliente` varchar(150) default NULL,
`Nome_do_pai` varchar(75) default NULL,
`Nome_da_mae` varchar(75) default NULL,
`Estado_Civil` varchar(20) default NULL,
`Data_de_nascimento` datetime default NULL,
`Telefone_Comercial_do_Cli` varchar(15) default NULL,
`Inscricao_Estadual_do_Cli` varchar(20) default NULL,
`Nome_do_Conjuje` varchar(75) default NULL,
`CPF_do_conjuge` varchar(20) default NULL,
`RG_do_conjuge` varchar(20) default NULL,
`Data_de_nasc_do_conjuge` datetime default NULL,
`Empresa_do_conjuge` varchar(75) default NULL,
`Telefone_comercial_do_conjuge` varchar(15) default NULL,
`Renda_mensal_do_conjuge` decimal(19,4) default NULL,
`Empresa_do_cliente` varchar(75) default NULL,
`Telefone_da_emp_do_cli` varchar(15) default NULL,
`CNPJ_da_emp_do_cli` varchar(20) default NULL,
`Data_de_admissao_na_emp_do_cli` datetime default NULL,
`Renda_mensal` decimal(19,4) default NULL,
`Endereco_da_emp_do_cli` varchar(100) default NULL,
`Bairro_da_emp_do_cli` varchar(30) default NULL,
`Cidade_da_emp_do_cli` varchar(30) default NULL,
`Outras_referencias_do_cli` longtext,
`Cep_da_emp_do_cli` varchar(20) default NULL,
`Cliente_na_lista_negra` tinyint(1) default '0',
`Consulta_spc_serasa` varchar(15) default NULL,
`Data_da_consulta_spc` datetime default NULL,
PRIMARY KEY (`Codigo_do_Cliente`)
) TYPE=InnoDB ROW_FORMAT=FIXED;
sommbra
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 14.09.2006, 20:53

problem and solution...

Post by sommbra »

Post Reply