[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] cvs: pecl /maxdb/tests maxdb065.phpt
From:       "Thomas Simenec" <simenec () php ! net>
Date:       2005-01-23 22:36:57
Message-ID: cvssimenec1106519817 () cvsserver
[Download RAW message or body]

simenec		Sun Jan 23 17:36:57 2005 EDT

  Added files:                 
    /pecl/maxdb/tests	maxdb065.phpt 
  Log:
  Test for failed prepare
  

http://cvs.php.net/co.php/pecl/maxdb/tests/maxdb065.phpt?r=1.1&p=1
Index: pecl/maxdb/tests/maxdb065.phpt
+++ pecl/maxdb/tests/maxdb065.phpt
--TEST--
maxdb_prepare error
--SKIPIF--
<?php require 'skipif.inc'; ?>
--FILE--
<?php
include "connect.inc";

$link = maxdb_connect("localhost", $user, $passwd);
   
/* check connection */
if (maxdb_connect_errno()) {
   printf("Connect failed: %s\n", maxdb_connect_error());
   exit();
}

/* Performing SQL query */
$stmt = maxdb_prepare ($link, "SELECT * FROM XXXXXXXXXXXXXX");
if (!$stmt) {
  printf ("Prepare failed: %s\n", maxdb_error($link));
}
?>
--EXPECTF--
Warning: maxdb_prepare(): -4004 POS(15) Unknown table name:XXXXXXXXXXXXXX [42000]%s
Prepare failed: POS(15) Unknown table name:XXXXXXXXXXXXXX

-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic