Can't Update Query...

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
JiguJigu
Posts: 5
Joined: Wed 17 May 2006 06:02

Can't Update Query...

Post by JiguJigu » Wed 02 Aug 2006 10:38

hi..

myQuery string like this
Select iPriode, left(iPriode,4) as iYear, right(iPriode,2) as iMonth from tPriode

when i wanna insert, the sql show the readonly message.

i already choice only iPriode field will update from SQL Generator
INSERT INTO tPriode
(iPriode)
VALUES
(:iPriode)

but fail, i already try using MyUpdateSql.. but still fail...

right now i am using MyCommand to Update,Delete and Insert.

and good solution ???

Jigu Jigu

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Thu 03 Aug 2006 09:13

We couldn't reproduce the problem.
Please send us (mydac*crlab*com) a complete small test project to reproduce
the problem; include definition of your own database objects; don't use
third party components.

Also supply us following information
- Exact version of Delphi or C++ Builder
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL Server and MySQL client. You can see it in Info sheet of TMyConnection Editor

JiguJigu
Posts: 5
Joined: Wed 17 May 2006 06:02

Post by JiguJigu » Fri 04 Aug 2006 02:43

Ooopss...

sorry,..

the readonly property is set to True by accidentally.


the problem is solve...

thank'sss

Jigu

Post Reply