#011266: ezcQueryExpression->in( 'colname', array() ) produces a strange exception message

Description:

When running code like this:


$q->select( '*' )
  ->from( 'tablename' )
  ->where( $q->expr->in( 'id', array() ) );

You get the following message:
ezcQueryVariableParameterException: The method 'in' expected at least 2 parameters but only 2 was provided.

This is slightly confusing, the message should state you supplied an empty array.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Fixed in rev. 7059.

#255308 by Derick Rethans on January 3rd, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Database
Affects 1.3 - Database 1.3
Fix Versions 1.3.1 - Database 1.3.1
2007.2.1 - eZ components 2007.2.1
Reporter Derick Rethans
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created August 15th, 2007
Updated January 3rd, 2008
Resolved January 3rd, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels