#296 closed defect (fixed)
non-recognized types of fields in a query to MySql
Reported by: | imendez | Owned by: | danirus |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | DataBase | Version: | head |
Severity: | critical | Keywords: | |
Cc: |
Description
TOL doesn´t recognize a "count" operation as a real type data.
If you compile:
Text qry ="
select count(*)
from
(
select 'hola'
) t";
Set s = DBTable(qry);
Real r = s[1][1];
Text t = s[1][1];
You find the following error message:
Warning: (Funcion DBTable) La consulta debería devolver un texto, una fecha o un
número en el campo 1
ERROR: Tipos incompatibles en Element (ó [ ] ): es de tipo Text, pero no de
tipo Real.
ERROR: r no se pudo crear.
Change History (7)
comment:1 Changed 19 years ago by
comment:2 Changed 19 years ago by
comment:3 Changed 19 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This bug was already fixed.
* This bug has been marked as a duplicate of bug 295 *
comment:4 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/toldb/by_engine/common/Bugzilla/bug_000296 |
---|
Due to problem could be extensible to other database engines, it has been added a new test to check it in all allowed engines
http://cvs.tol-project.org/viewcvs.cgi/tol_tests/toldb/by_engine/common/Bugzilla/bug_000296
comment:5 Changed 18 years ago by
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
This is not a duplicate of 294 but it's fixed long time ago
comment:6 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Hi Iván,
I need some information about the Database, and also I need some time to
configure my Windows in my very-old Pentium III to try the code. By now, please
tell me which RDBMS are you using? (MyQSL/Oracle/DB2...), and which version?
In advance I can inform you that your code works good under gnu/Linux using both
MySQL drivers, Tol-ODBC and Tol-MySQL Direct. Last sentence returns an error,
but nothing unexpected, I mean, it's not possible to convert from Real to Text.
Please tell me that data about your RDBMS.
Cheers, Daniel