- Prefixed all temporary names with "phpt_"

This commit is contained in:
Timm Friebe 2005-02-06 12:59:03 +00:00
parent 2a595d116e
commit 57fa001979
5 changed files with 9 additions and 9 deletions

View File

@ -16,7 +16,7 @@ Sybase-CT bug #22403 (crash when executing a stored procedure without parameters
error_reporting(error_reporting() & !E_NOTICE); // Suppress notices
// Check if stored procedure already exists
$sp_name= basename(__FILE__, '.php');
$sp_name= 'phpt_bug22403';
var_dump(sybase_select_db('tempdb', $db));
if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) {
echo "Stored procedure {$sp_name} not found, creating\n";

View File

@ -14,7 +14,7 @@ Sybase-CT bug #26407 (Result set fetching broken around transactions)
$db= sybase_connect_ex();
// Create temporary table
$table= basename(__FILE__, '.php');
$table= 'phpt_bug26407';
var_dump(sybase_query('create table #'.$table.' ( the_big_answer int )', $db));
// I
@ -67,7 +67,7 @@ array(1) {
>>> Query:
begin transaction
-- no result returned...
update #bug26407 set the_big_answer=42
update #phpt_bug26407 set the_big_answer=42
commit
<<< Return: boolean

View File

@ -14,7 +14,7 @@ Sybase-CT bug #27843 (notices when query is a stored procedure)
$db= sybase_connect_ex();
// Check if stored procedure already exists
$sp_name= basename(__FILE__, '.php');
$sp_name= 'phpt_bug27843';
var_dump(sybase_select_db('tempdb', $db));
if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) {
echo "Stored procedure {$sp_name} not found, creating\n";
@ -42,7 +42,7 @@ Sybase-CT bug #27843 (notices when query is a stored procedure)
bool(true)
Stored procedure %s
bool(true)
>>> Query: exec bug27843
>>> Query: exec phpt_bug27843
<<< Return: resource
array(1) {
[0]=>

View File

@ -16,7 +16,7 @@ Sybase-CT bug #28354 (sybase_free_result crash)
error_reporting(error_reporting() & !E_NOTICE); // Suppress notices
// Check if stored procedure already exists
$sp_name= basename(__FILE__, '.php');
$sp_name= 'phpt_bug28354';
var_dump(sybase_select_db('tempdb', $db));
if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) {
echo "Stored procedure {$sp_name} not found, creating\n";

View File

@ -19,7 +19,7 @@ Sybase-CT application name
}
// }}}
$program_name= basename(__FILE__, '.php');
$program_name= 'phpt_test';
$hostname= 'php.net';
ini_set('sybct.hostname', $hostname);
@ -50,7 +50,7 @@ Sybase-CT application name
from
master..sysprocesses
where
program_name = "test_appname"
program_name = "phpt_test"
<<< Return: resource
array(1) {
[0]=>
@ -58,7 +58,7 @@ array(1) {
["hostname"]=>
string(10) "php.net%s"
["program_name"]=>
string(16) "test_appname%s"
string(16) "phpt_test%s"
}
}
bool(true)