Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #41365 : SQLSTATE: General error: 2053 Source File
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 21st July 22:02
php-bugs
External User
 
Posts: 1
Default #41365 : SQLSTATE: General error: 2053 Source File



From: jrags at jasrags dot net
Operating system: Fedora Core 5
PHP version: 5.2.2
PHP Bug Type: PDO related
Bug description: SQLSTATE[HY000]: General error: 2053 Source File

Description:
------------
getting a sql hydrate issue when attempting to retireive a result set
from MySQL 5.0.26 on PHP 5.2.0. Specificly when using PARAM_BOOL. When i
search for a specific 1 or 0 i can retrieve data.

FROM PECL BUG:

[2007-01-24 14:25 UTC] mailing_lists at andersground dot net

The same is true for insert and update statements as well - even worse
is that in this case no error is produced, the statement just silently
fails. The same behaviour occurs when I bind a boolean variable
********ly with PDO::PARAM_INT - I'd expect that at least in this case
typecasting happens:

$sth->bindValue(1, true, PDO::PARAM_INT);

fails in the same way.

Reproduce code:
---------------
$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);

$sql =
'SELECT
*
FROM
tbl_address
WHERE
tbl_address.is_active = ?';

$sth = $dbh->prepare($sql);
$sth->bindValue(1, true, PDO::PARAM_BOOL);
$sth->execute();
while($row = $sth->fetch(PDO::FETCH_NUM)) {
print_r($row);
}

Expected result:
----------------
I would expect data to be returned.

Actual result:
--------------
PDOException Description

SQLSTATE[HY000]: General error: 2053 Source File

--
Edit bug report at http://bugs.php.net/?id=41365&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41365&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41365&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41365&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41365&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41365&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41365&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41365&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41365&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41365&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41365&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41365&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41365&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41365&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41365&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41365&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41365&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41365&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41365&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41365&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41365&r=mysqlcfg
  Reply With Quote


  sponsored links


2 21st July 22:03
External User
 
Posts: 1
Default #41365 : SQLSTATE: General error: 2053 Source File



ID: 41365
Updated by: tony2001@php.net
Reported By: jrags at jasrags dot net
-Status: Open
+Status: Feedback
Bug Type: PDO related
Operating System: Fedora Core 5
PHP Version: 5.2.2
New Comment:

Cannot reproduce, your code works perfectly fine with MySQL 5.0.26 &
PHP 5.2.2.


Previous Comments:
------------------------------------------------------------------------

[2007-05-11 14:40:21] jrags at jasrags dot net

Description:
------------
getting a sql hydrate issue when attempting to retireive a result set
from MySQL 5.0.26 on PHP 5.2.0. Specificly when using PARAM_BOOL. When
i
search for a specific 1 or 0 i can retrieve data.

FROM PECL BUG:

[2007-01-24 14:25 UTC] mailing_lists at andersground dot net

The same is true for insert and update statements as well - even worse
is that in this case no error is produced, the statement just silently
fails. The same behaviour occurs when I bind a boolean variable
********ly with PDO::PARAM_INT - I'd expect that at least in this case
typecasting happens:

$sth->bindValue(1, true, PDO::PARAM_INT);

fails in the same way.

Reproduce code:
---------------
$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);

$sql =
'SELECT
*
FROM
tbl_address
WHERE
tbl_address.is_active = ?';

$sth = $dbh->prepare($sql);
$sth->bindValue(1, true, PDO::PARAM_BOOL);
$sth->execute();
while($row = $sth->fetch(PDO::FETCH_NUM)) {
print_r($row);
}

Expected result:
----------------
I would expect data to be returned.

Actual result:
--------------
PDOException Description

SQLSTATE[HY000]: General error: 2053 Source File


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


--
Edit this bug report at http://bugs.php.net/?id=41365&edit=1
  Reply With Quote
3 21st July 22:03
php-bugs
External User
 
Posts: 1
Default #41365 : SQLSTATE: General error: 2053 Source File


ID: 41365
User updated by: jrags at jasrags dot net
Reported By: jrags at jasrags dot net
-Status: Feedback
+Status: Open
Bug Type: PDO related
Operating System: Fedora Core 5
PHP Version: 5.2.2
New Comment:

Ill Re-test tonight, i had this bug sitting in PECL for quite some time
before i put it in here, so let me check again and make sure it's still
going on.


Previous Comments:
------------------------------------------------------------------------

[2007-05-11 15:22:36] tony2001@php.net

Cannot reproduce, your code works perfectly fine with MySQL 5.0.26 &
PHP 5.2.2.

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

[2007-05-11 14:40:21] jrags at jasrags dot net

Description:
------------
getting a sql hydrate issue when attempting to retireive a result set
from MySQL 5.0.26 on PHP 5.2.0. Specificly when using PARAM_BOOL. When
i
search for a specific 1 or 0 i can retrieve data.

FROM PECL BUG:

[2007-01-24 14:25 UTC] mailing_lists at andersground dot net

The same is true for insert and update statements as well - even worse
is that in this case no error is produced, the statement just silently
fails. The same behaviour occurs when I bind a boolean variable
********ly with PDO::PARAM_INT - I'd expect that at least in this case
typecasting happens:

$sth->bindValue(1, true, PDO::PARAM_INT);

fails in the same way.

Reproduce code:
---------------
$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);

$sql =
'SELECT
*
FROM
tbl_address
WHERE
tbl_address.is_active = ?';

$sth = $dbh->prepare($sql);
$sth->bindValue(1, true, PDO::PARAM_BOOL);
$sth->execute();
while($row = $sth->fetch(PDO::FETCH_NUM)) {
print_r($row);
}

Expected result:
----------------
I would expect data to be returned.

Actual result:
--------------
PDOException Description

SQLSTATE[HY000]: General error: 2053 Source File


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


--
Edit this bug report at http://bugs.php.net/?id=41365&edit=1
  Reply With Quote
4 21st July 22:03
External User
 
Posts: 1
Default #41365 : SQLSTATE: General error: 2053 Source File


ID: 41365
Updated by: tony2001@php.net
Reported By: jrags at jasrags dot net
-Status: Open
+Status: Feedback
Bug Type: PDO related
Operating System: Fedora Core 5
PHP Version: 5.2.2


Previous Comments:
------------------------------------------------------------------------

[2007-05-11 15:29:45] jrags at jasrags dot net

Ill Re-test tonight, i had this bug sitting in PECL for quite some time
before i put it in here, so let me check again and make sure it's still
going on.

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

[2007-05-11 15:22:36] tony2001@php.net

Cannot reproduce, your code works perfectly fine with MySQL 5.0.26 &
PHP 5.2.2.

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

[2007-05-11 14:40:21] jrags at jasrags dot net

Description:
------------
getting a sql hydrate issue when attempting to retireive a result set
from MySQL 5.0.26 on PHP 5.2.0. Specificly when using PARAM_BOOL. When
i
search for a specific 1 or 0 i can retrieve data.

FROM PECL BUG:

[2007-01-24 14:25 UTC] mailing_lists at andersground dot net

The same is true for insert and update statements as well - even worse
is that in this case no error is produced, the statement just silently
fails. The same behaviour occurs when I bind a boolean variable
********ly with PDO::PARAM_INT - I'd expect that at least in this case
typecasting happens:

$sth->bindValue(1, true, PDO::PARAM_INT);

fails in the same way.

Reproduce code:
---------------
$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);

$sql =
'SELECT
*
FROM
tbl_address
WHERE
tbl_address.is_active = ?';

$sth = $dbh->prepare($sql);
$sth->bindValue(1, true, PDO::PARAM_BOOL);
$sth->execute();
while($row = $sth->fetch(PDO::FETCH_NUM)) {
print_r($row);
}

Expected result:
----------------
I would expect data to be returned.

Actual result:
--------------
PDOException Description

SQLSTATE[HY000]: General error: 2053 Source File


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


--
Edit this bug report at http://bugs.php.net/?id=41365&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666