Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
DB_driver::error mapping
3
--INI--
4
error_reporting = 2047
5
--SKIPIF--
6
<?php chdir(dirname(__FILE__)); require_once './skipif.inc'; ?>
7
--FILE--
8
<?php
9
require_once './mktable.inc';
10
require_once '../errors.inc';
11
?>
12
--EXPECT--
13
DB_ERROR_NOSUCHTABLE for select:  matches expected outcome
14
DB_ERROR_NOSUCHTABLE for drop:  matches expected outcome
15
DB_ERROR_NOT_FOUND for drop index:  matches expected outcome
16
DB_ERROR_ALREADY_EXISTS for create table:  matches expected outcome
17
DB_ERROR_ALREADY_EXISTS for create index:  matches expected outcome
18
DB_ERROR_CONSTRAINT for primary key insert duplicate:  matches expected outcome
19
DB_ERROR_CONSTRAINT for primary key update duplicate:  matches expected outcome
20
DB_ERROR_CONSTRAINT for unique key insert duplicate:  matches expected outcome
21
DB_ERROR_CONSTRAINT for unique key update duplicate:  matches expected outcome
22
DB_ERROR_CONSTRAINT for foreign key on insert:  matches expected outcome
23
DB_ERROR_CONSTRAINT for foreign key on delete:  matches expected outcome
24
DB_ERROR_CONSTRAINT_NOT_NULL on insert:  matches expected outcome
25
DB_ERROR_CONSTRAINT_NOT_NULL on update:  matches expected outcome
26
DB_ERROR_NOSUCHFIELD joining ON bogus column:  matches expected outcome
27
DB_ERROR_NOSUCHFIELD joining USING bogus column:  matches expected outcome
28
DB_ERROR_DIVZERO:  matches expected outcome
29
DB_ERROR_INVALID_NUMBER putting chars in INT column:  matches expected outcome
30
DB_ERROR_INVALID_NUMBER putting float in INT column:  matches expected outcome
31
DB_ERROR_INVALID_NUMBER putting excessive int in INT column:  matches expected outcome
32
DB_ERROR_INVALID_NUMBER putting int in CHAR column:  matches expected outcome
33
DB_ERROR_NOSUCHFIELD:  matches expected outcome
34
DB_ERROR_SYNTAX:  matches expected outcome
35
DB_ERROR_VALUE_COUNT_ON_ROW:  matches expected outcome
36
DB_ERROR_INVALID on CHAR column data too long:  matches expected outcome
37
DB_ERROR_INVALID on VARCHAR column data too long:  matches expected outcome