- Cleaned up SQL statement
# This bug has been fixed, but this test should be kept anyways,
# just to make sure it does not reappear
if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) {
echo "Stored procedure {$sp_name} not found, creating\n";
var_dump(sybase_query('
- create proc '.$sp_name.'
- as
- begin
+ create proc '.$sp_name.' as begin
select @@version
end
'));
bool(true)
Stored procedure %s
bool(true)
->>> Query: exec %s
int(0)
-string(%s)
+string(%d) "%s"