close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

#364 closed defect (fixed)

SQL returned type is not readable

Reported by: Víctor de Buen Remiro Owned by: Jorge
Priority: highest Milestone:
Component: DataBase Version: head
Severity: blocker Keywords:
Cc:

Description

Hello,

When you run this TOL code with SQL embebed code

Matrix DBMatrix("

select

case

when 'any thing' is null then 0
when locate('another thing', 'any thing')=0 then 0

else 1

end

");

a 0x0 matrix is created and a TOL warning is sended to the user

Warning: [1] (Funcion DBMatrix) La consulta debería devolver un Real en el campo
1

My DB server is MySQL. Using MySql Browser with the query

select

case

when 'any thing' is null then 0
when locate('another thing', 'any thing')=0 then 0

else 1

end

I obtain a data set with just one row and one field containing the number 0.

Thanks

Change History (3)

comment:1 Changed 19 years ago by Víctor de Buen Remiro

Hello again

This TOL-SQL query without <is null> comparisson is all right

Matrix DBMatrix("

select

case

when locate('another thing', 'any thing')=0 then 0
else 1

end

");

comment:2 Changed 19 years ago by Jorge

Status: newassigned

comment:3 Changed 19 years ago by Jorge

Resolution: fixed
Status: assignedclosed

SQLDescribeCol should also consider SQL_SUCCESS_WITH_INFO as a valid return code.

Note: See TracTickets for help on using tickets.