Update pdo_065_construct_persistent.phpt
This commit is contained in:
parent
d289754362
commit
20198804bb
|
@ -13,8 +13,7 @@ try{
|
||||||
$attr = array(PDO::ATTR_PERSISTENT => true);
|
$attr = array(PDO::ATTR_PERSISTENT => true);
|
||||||
$conn = new PDO( $dsn, $username, $password, $attr);
|
$conn = new PDO( $dsn, $username, $password, $attr);
|
||||||
|
|
||||||
//free the statement and connection
|
//free the connection
|
||||||
$stmt=null;
|
|
||||||
$conn=null;
|
$conn=null;
|
||||||
}
|
}
|
||||||
catch( PDOException $e ) {
|
catch( PDOException $e ) {
|
||||||
|
@ -33,6 +32,9 @@ try{
|
||||||
if ($result['c1'] == 1 && $result['c2'] == 'column2') {
|
if ($result['c1'] == 1 && $result['c2'] == 'column2') {
|
||||||
echo "Test successfully";
|
echo "Test successfully";
|
||||||
}
|
}
|
||||||
|
//free the statement and connection
|
||||||
|
$stmt = null;
|
||||||
|
$conn = null;
|
||||||
}
|
}
|
||||||
catch( PDOException $e ) {
|
catch( PDOException $e ) {
|
||||||
var_dump( $e);
|
var_dump( $e);
|
||||||
|
|
Loading…
Reference in a new issue