Mantis - Quercus
Viewing Issue Advanced Details
1131 major always 05-19-06 14:14 05-30-06 10:54
koreth  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.0.20  
0001131: MySQL queries fail with ClassCastException
I haven't figured out exactly the circumstances that cause this. My best guess is that it's when a MySQL query returns no results. But in any case, sometimes queries fail with the following exception:

[14:00:39.625] java.lang.ClassCastException: com.caucho.quercus.env.BooleanValue
[14:00:39.625] at com.caucho.quercus.lib.mysql.Mysqli.query(Mysqli.java:401)
[14:00:39.625] at com.caucho.quercus.lib.mysql.MysqlModule.mysql_query(MysqlModule.java:377)

It looks like JdbcConnectionResource.query() is returning a BooleanValue in some cases, which the code is trying to cast to a JavaValue.

Notes
(0001255)
ferg   
05-30-06 10:54   
php/141d