Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15115 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2391 invoked by uid 1010); 20 Feb 2005 10:08:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55469 invoked from network); 20 Feb 2005 09:32:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2005 09:32:43 -0000 X-Host-Fingerprint: 64.233.184.193 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.193:31708] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTP id 5A/79-06388-B3958124 for ; Sun, 20 Feb 2005 04:32:43 -0500 Received: by wproxy.gmail.com with SMTP id 63so286781wri for ; Sun, 20 Feb 2005 01:32:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=toTsakQfx8J22keFKCooHZntWDY/GeqYHzE/wjoqscTl/djKCWzyxmc3t2yfiOF5BsB6EV2nWn93UvR9sFfP+nMdCJDUkPktp7FzM4W2Utw/QrdX88dFkom6wVL+b3J2/Dx6tz1OU1/OqRO+3YS1My8V+i7JWdqfdxxahmWn/+I= Received: by 10.54.17.23 with SMTP id 23mr90038wrq; Sun, 20 Feb 2005 01:32:39 -0800 (PST) Received: by 10.54.59.22 with HTTP; Sun, 20 Feb 2005 01:32:39 -0800 (PST) Message-ID: <4e89b426050220013279879c34@mail.gmail.com> Date: Sun, 20 Feb 2005 04:32:39 -0500 Reply-To: Wez Furlong To: Timm Friebe Cc: internals@lists.php.net In-Reply-To: <1108835567.316.34.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1108835567.316.34.camel@localhost> Subject: Re: [PHP-DEV] PDO/MySQL column metadata native_type broken From: kingwez@gmail.com (Wez Furlong) Please open a pecl bug for this too, Thanks --Wez. On Sat, 19 Feb 2005 18:52:47 +0100, Timm Friebe wrote: > Hi, > > native_type (returned from PDOStatement::getColumnMeta()) was showing > weird behaviour in PDO/MySQL, mostly not existing at all and showing > incorrect values (e.g. "DECIMAL" for varchars). > > A small typo is why: > > Index: ext/pdo_mysql/mysql_statement.c > =================================================================== > RCS file: /repository/php-src/ext/pdo_mysql/mysql_statement.c,v > retrieving revision 1.14 > diff -u -r1.14 mysql_statement.c > --- ext/pdo_mysql/mysql_statement.c 13 Feb 2005 00:48:00 -0000 > 1.14 > +++ ext/pdo_mysql/mysql_statement.c 19 Feb 2005 17:48:00 -0000 > @@ -228,7 +228,7 @@ > if (IS_BLOB(F->flags)) { > add_next_index_string(flags, "blob", 1); > } > - str = type_to_name_native(F->flags); > + str = type_to_name_native(F->type); > if (str) { > add_assoc_string(return_value, "native_type", str, 1); > } > > -- > Timm > If it ain't broken, it doesn't have enough features yet > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >