mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00

The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
50 lines
1 KiB
PHP
50 lines
1 KiB
PHP
--TEST--
|
|
PDO_Firebird: rowCount
|
|
--SKIPIF--
|
|
<?php extension_loaded("pdo_firebird") or die("skip"); ?>
|
|
<?php function_exists("ibase_query") or die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require("testdb.inc");
|
|
|
|
$dbh = new PDO("firebird:dbname=$test_base",$user,$password) or die;
|
|
|
|
@$dbh->exec('DROP TABLE testz');
|
|
$dbh->exec('CREATE TABLE testz (A VARCHAR(10))');
|
|
$dbh->exec("INSERT INTO testz VALUES ('A')");
|
|
$dbh->exec("INSERT INTO testz VALUES ('A')");
|
|
$dbh->exec("INSERT INTO testz VALUES ('B')");
|
|
$dbh->commit();
|
|
|
|
$query = "SELECT * FROM testz WHERE A = ?";
|
|
|
|
$stmt = $dbh->prepare($query);
|
|
$stmt->execute(array('A'));
|
|
$rows = $stmt->fetch();
|
|
$rows = $stmt->fetch();
|
|
var_dump($stmt->fetch());
|
|
var_dump($stmt->rowCount());
|
|
|
|
$stmt = $dbh->prepare('UPDATE testZ SET A="A" WHERE A != ?');
|
|
$stmt->execute(array('A'));
|
|
var_dump($stmt->rowCount());
|
|
$dbh->commit();
|
|
|
|
$stmt = $dbh->prepare('DELETE FROM testz');
|
|
$stmt->execute();
|
|
var_dump($stmt->rowCount());
|
|
|
|
$dbh->commit();
|
|
|
|
$dbh->exec('DROP TABLE testz');
|
|
|
|
unset($stmt);
|
|
unset($dbh);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
int(2)
|
|
int(1)
|
|
int(3)
|