TZQuery is read-only when using stored procedure in SQL
Posted: 25.10.2008, 14:04
First, I'm new to Delphi and Zeoslib, so pardon me if this is a stupid question, but:
- I have TZConnection, TZQuery and TZUpdateSQL
- TZQuery is data source for standard Delphi data controls (TDBEdit, TDBGrid) through a TDataSource
Now, when I set the SQL of TZQuery like this: 'SELECT * FROM PATIENT' (PATIENT is the name of a table in database), I can edit the values of current record in data controls.
But when my SQL is 'SELECT * FROM PL_PATIENT' ('PL_PATIENT' is the name of a stored procedure) all data controls become "readonly".
I'm not talking about making actual updates to database, only about being or not being able to edit the values in DB-aware controls. It works OK, even with complex sql queries, but it stops wroking when I use any name of a stored procedure.
Is this a bug?
Thanks!
- I have TZConnection, TZQuery and TZUpdateSQL
- TZQuery is data source for standard Delphi data controls (TDBEdit, TDBGrid) through a TDataSource
Now, when I set the SQL of TZQuery like this: 'SELECT * FROM PATIENT' (PATIENT is the name of a table in database), I can edit the values of current record in data controls.
But when my SQL is 'SELECT * FROM PL_PATIENT' ('PL_PATIENT' is the name of a stored procedure) all data controls become "readonly".
I'm not talking about making actual updates to database, only about being or not being able to edit the values in DB-aware controls. It works OK, even with complex sql queries, but it stops wroking when I use any name of a stored procedure.
Is this a bug?
Thanks!