Annotation of embedaddon/php/ext/oci8/tests/lob_015.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: various tests with wrong param count
        !             3: --SKIPIF--
        !             4: <?php
        !             5: $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
        !             6: require(dirname(__FILE__).'/skipif.inc');
        !             7: ?> 
        !             8: --FILE--
        !             9: <?php
        !            10:        
        !            11: require dirname(__FILE__).'/connect.inc';
        !            12: require dirname(__FILE__).'/create_table.inc';
        !            13: 
        !            14: $ora_sql = "INSERT INTO
        !            15:                        ".$schema.$table_name." (blob)
        !            16:                       VALUES (empty_blob())
        !            17:                       RETURNING
        !            18:                                blob
        !            19:                       INTO :v_blob ";
        !            20: 
        !            21: $statement = oci_parse($c,$ora_sql);
        !            22: $blob = oci_new_descriptor($c,OCI_D_LOB,1,2,3);
        !            23: $blob = oci_new_descriptor($c);
        !            24: $int = 1;
        !            25: oci_bind_by_name($statement,":v_blob", $blob,-1,OCI_B_BLOB,4);
        !            26: oci_bind_by_name($statement,":v_blob", $blob,-1,OCI_B_BLOB,4,5);
        !            27: oci_bind_by_name($statement,":v_blob", $int,-1);
        !            28: oci_bind_by_name($statement,":v_blob", $int);
        !            29: oci_bind_by_name($statement,":v_blob");
        !            30: oci_bind_by_name($statement);
        !            31: oci_execute($statement, OCI_DEFAULT);
        !            32: 
        !            33: var_dump($blob);
        !            34: 
        !            35: require dirname(__FILE__).'/drop_table.inc';
        !            36: 
        !            37: echo "Done\n";
        !            38: 
        !            39: ?>
        !            40: --EXPECTF--
        !            41: Warning: oci_new_descriptor() expects at most 2 parameters, 5 given in %s on line %d
        !            42: 
        !            43: Warning: oci_bind_by_name() expects at most 5 parameters, 6 given in %s on line %d
        !            44: 
        !            45: Warning: oci_bind_by_name() expects at most 5 parameters, 7 given in %s on line %d
        !            46: 
        !            47: Warning: oci_bind_by_name() expects at least 3 parameters, 2 given in %s on line %d
        !            48: 
        !            49: Warning: oci_bind_by_name() expects at least 3 parameters, 1 given in %s on line %d
        !            50: 
        !            51: Warning: oci_execute(): ORA-00932: %s NUMBER %s BLOB in %s on line %d
        !            52: object(OCI-Lob)#%d (1) {
        !            53:   ["descriptor"]=>
        !            54:   resource(%d) of type (oci8 descriptor)
        !            55: }
        !            56: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>