Incorrect field type - string vs. memo
Posted: 08.03.2007, 14:24
Hi,
I use ZeosDBO 6.6.0 and I have a following problem: I use TZQuery to run command "SELECT p.note FROM (oper_premiums p) WHERE p.premid=100" and TDataSource with TDBGrid to display results.
When table name is in brackets that the field p.note is considered like memo and shown like memo in TDBGrid, so it's impossible to read the content. But when I remove the brackets it's correctly considered as string and it's readable in DBGrid. In the database the field is declared as varchar(255).
In this case I can remove the brackets without problems, but sometimes it's necessary to use them, eg. when I use several LEFT JOINs and more than one table in FROM clause. For example
SELECT somthing
FROM (tableA a, tableB b)
LEFT JOIN tableC c ON a.id=c.id
LEFT JOIN tableD d ON b.id=d.id
MySQL version 5.x doesn't allow to run such command without using brackets in FROM clause.
Previous version of Zeos I used (6.5.1) didn't have such problem. So is it a bug of new version?
thanks
Jiri Matejka
I use ZeosDBO 6.6.0 and I have a following problem: I use TZQuery to run command "SELECT p.note FROM (oper_premiums p) WHERE p.premid=100" and TDataSource with TDBGrid to display results.
When table name is in brackets that the field p.note is considered like memo and shown like memo in TDBGrid, so it's impossible to read the content. But when I remove the brackets it's correctly considered as string and it's readable in DBGrid. In the database the field is declared as varchar(255).
In this case I can remove the brackets without problems, but sometimes it's necessary to use them, eg. when I use several LEFT JOINs and more than one table in FROM clause. For example
SELECT somthing
FROM (tableA a, tableB b)
LEFT JOIN tableC c ON a.id=c.id
LEFT JOIN tableD d ON b.id=d.id
MySQL version 5.x doesn't allow to run such command without using brackets in FROM clause.
Previous version of Zeos I used (6.5.1) didn't have such problem. So is it a bug of new version?
thanks
Jiri Matejka