]> granicus.if.org Git - php/commitdiff
MFH
authorArd Biesheuvel <abies@php.net>
Sun, 15 Feb 2004 18:45:56 +0000 (18:45 +0000)
committerArd Biesheuvel <abies@php.net>
Sun, 15 Feb 2004 18:45:56 +0000 (18:45 +0000)
ext/interbase/tests/003.phpt

index 06a5c709c0ae4cd7de2a9cef4b54ffdbbedd70a9..80685e54a03ebb3d8fcb2aef8ac5daaefca21429 100644 (file)
@@ -5,14 +5,14 @@ InterBase: misc sql types (may take a while)
 --POST--
 --GET--
 --FILE--
-<?php
+<?php /* $Id$ */
 
     require("interbase.inc");
     ibase_connect($test_base);
     
     ibase_query(
        "create table test3 (
-            iter               integer,
+            iter               integer not null,
             v_char             char(1000),
             v_date      timestamp,
                        v_decimal4_2            decimal(4,2),
@@ -29,6 +29,9 @@ InterBase: misc sql types (may take a while)
             )");
     ibase_commit();
 
+       /* should fail, but gracefully */
+       @ibase_query("insert into test3 (iter) values (?)", null);
+
     /* if timefmt is not supported, suppress error here */
     @ibase_timefmt("%m/%d/%Y %H:%M:%S");