#43891 [NEW]: mysql_fetch_field for PDO
| From: | mynameismrburns at yahoo dot co | Date: | Fri, 18 Jan 2008 21:04:48 +0000 |
| Subject: | #43891 [NEW]: mysql_fetch_field for PDO | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-121398@lists.php.net to get a copy of this message | ||
From: mynameismrburns at yahoo dot co
Operating system: any
PHP version: 5.2.5
PHP Bug Type: Feature/Change Request
Bug description: mysql_fetch_field for PDO
Description:
------------
I Couldn't find anything that replace the mysql_fetch_field function in
PDO.
I just found this hint: "pdo doesn't care about charsets. if you want to
have your connection in unicode / utf-8 or any other encoding, you'll have
to tell your database, for example using $dbh->exec('SET CHARACTER SET
utf8') (mysql)"
But what is with Tables like this:
SET CHARACTER SET utf8;
CREATE TABLE
newtable (
Id int(11) NOT NULL auto_increment,
NewField varchar(255) default NULL,
NewField2 varbinary(255) default NULL,
PRIMARY KEY (Id)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
If I now SELECT something, Id and NewField is UTF8 but NewField2 is still
binary (like a JPEG).
Is there an option or is this not implemented?
--
Edit bug report at http://bugs.php.net/?id=43891&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43891&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43891&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43891&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43891&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43891&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43891&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43891&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43891&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43891&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43891&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43891&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43891&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43891&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43891&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43891&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43891&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43891&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43891&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43891&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43891&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43891&r=mysqlcfg