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

 ID:               51960
 Comment by:       rgagnon24 at gmail dot com
 Reported by:      walkinraven at gmail dot com
 Summary:          PDO::MYSQL_ATTR_LOCAL_INFILE cause error always
 Status:           Open
 Type:             Bug
 Package:          PDO related
 Operating System: Ubuntu 8.04
 PHP Version:      5.2SVN-2010-06-01 (SVN)

 New Comment:

Looking in ext/pdo/mysql_driver.c, there is no support within
get_attribute() nor set_attribute() for this attribute.



This is why you always get false back.  Its just not doing anything.  We
were running into just this same thing ourselves today in fact.


Previous Comments:
------------------------------------------------------------------------
[2010-06-01 05:27:00] walkinraven at gmail dot com

Description:
------------
If you set PDO::MYSQL_ATTR_LOCAL_INFILE with PDO::setAttribute function,
it will return FALSE, whatever you set it to TRUE or FALSE.

Test script:
---------------
// $pdo=new PDO(...);

$result=$pdo->setAttribute(PDO::MYSQL_ATTR_LOCAL_INFILE, FALSE);



// or you could try set it to TRUE, you will get the same. $result=FALSE

Expected result:
----------------
$result != FALSE

Actual result:
--------------
$result == FALSE


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



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

Reply via email to