History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-2298
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Ralph Schindler
Reporter: Jason Austin
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

quoteInto changes value when an array is passed as second argument.

Created: 12/Dec/07 10:28 AM   Updated: 22/Jun/09 06:47 AM  Due: 23/Jan/09
Component/s: Zend_Db
Affects Version/s: 1.0.2
Fix Version/s: Next Mini Release

Time Tracking:
Not Specified

 Public Fields   Internal Project Management Fields   
Tags:
Participants: Jason Austin, Ralph Schindler and Wil Sinclair
Fix Version Priority: Nice to Have


 Description  « Hide
When passing an array to $adapter->quoteInto() as the second argument, the function changes the values of the array. For example:

// names = Array ( [0] => php [1] => google [2] => working )
$names = array(
'php',
'google',
'working'
);

$where = $dba->quoteInto('name IN ', $names)

// print the existing array
print_r($names);

// prints out
// Array ( [0] => 'php' [1] => 'google' [2] => 'working' )

Notice quoteInto() has now added single quotes to each value in the array, which is unexpected behavior. This was specifically recreated using the MySQL db adapter using Zend _Db_Table.



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Wil Sinclair - 25/Mar/08 08:44 PM
Please categorize/fix as needed.

Wil Sinclair - 18/Apr/08 01:12 PM
This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.

Ralph Schindler - 10/Jan/09 10:58 AM
Will evaluate within 2 weeks