Edit report at https://bugs.php.net/bug.php?id=55328&edit=1

 ID:                 55328
 Updated by:         ssuffic...@php.net
 Reported by:        filakhtov at gmail dot com
 Summary:            bug in PDOStatement::bindColumn()
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            PDO related
 Operating System:   debian squeeze
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


>From your last comment it appears you no longer see this as a bug? Did you 
>find 
that the method returns False when the column does not exist?


Previous Comments:
------------------------------------------------------------------------
[2011-08-01 17:18:51] filakhtov at gmail dot com

Forgot to notice, what FALSE will be returned if column not found in current 
rowset.

------------------------------------------------------------------------
[2011-07-31 19:50:46] filakhtov at gmail dot com

Description:
------------
---
>From manual page: http://www.php.net/pdostatement.bindcolumn%23Parameters
---
I'm trying to use PDOStatement::bindColumn() method, but it always return TRUE, 
if it bound variable to column, and even if it does not. Also it produce a 
WARNING, ignoring PDO::ATTR_ERRMODE value, but seems warning reporting is now 
fixed in snapshots.

I think it should return FALSE on failure (that is what written in docs).

P. S. Sorry me for my bad english...

Expected result:
----------------
return FALSE if column does not bound successfully

Actual result:
--------------
TRUE, if column is bound or if it is not


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55328&edit=1

Reply via email to