mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
fix constant names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210402 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
10218f4402
commit
17315f5bce
1 changed files with 4 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<section id="pdo-mysql.constants">
|
||||
&reftitle.constants;
|
||||
&pdo.driver-constants;
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PDO_MYSQL_ATTR_USE_BUFFERED_QUERY</constant>
|
||||
<constant>PDO::MYSQL_ATTR_USE_BUFFERED_QUERY</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
|
@ -21,9 +21,9 @@
|
|||
<programlisting role='php'>
|
||||
<![CDATA[
|
||||
<?php
|
||||
if ($db->getAttribute(PDO_ATTR_DRIVERNAME) == 'mysql') {
|
||||
if ($db->getAttribute(PDO::ATTR_DRIVERNAME) == 'mysql') {
|
||||
$stmt = $db->prepare('select * from foo',
|
||||
array(PDO_MYSQL_ATTR_USE_UNBUFFERED_QUERY => true));
|
||||
array(PDO::MYSQL_ATTR_USE_UNBUFFERED_QUERY => true));
|
||||
} else {
|
||||
die("my application only works with mysql; I should use \$stmt->fetchAll() instead");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue