File: 10errormap.phpt

package info (click to toggle)
php-db 1.7.6-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 812 kB
  • ctags: 1,546
  • sloc: php: 6,708; pascal: 954; sh: 24; makefile: 24
file content (37 lines) | stat: -rw-r--r-- 1,947 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--TEST--
DB_driver::error mapping
--INI--
error_reporting = 2047
--SKIPIF--
<?php chdir(dirname(__FILE__)); require_once './skipif.inc'; ?>
--FILE--
<?php
require_once './mktable.inc';
require_once '../errors.inc';
?>
--EXPECT--
DB_ERROR_NOSUCHTABLE for select:  matches expected outcome
DB_ERROR_NOSUCHTABLE for drop:  matches expected outcome
DB_ERROR_NOT_FOUND for drop index:  matches expected outcome
DB_ERROR_ALREADY_EXISTS for create table:  matches expected outcome
DB_ERROR_ALREADY_EXISTS for create index:  matches expected outcome
DB_ERROR_CONSTRAINT for primary key insert duplicate:  matches expected outcome
DB_ERROR_CONSTRAINT for primary key update duplicate:  matches expected outcome
DB_ERROR_CONSTRAINT for unique key insert duplicate:  matches expected outcome
DB_ERROR_CONSTRAINT for unique key update duplicate:  matches expected outcome
DB_ERROR_CONSTRAINT for foreign key on insert:  matches expected outcome
DB_ERROR_CONSTRAINT for foreign key on delete:  matches expected outcome
DB_ERROR_CONSTRAINT_NOT_NULL on insert:  matches expected outcome
DB_ERROR_CONSTRAINT_NOT_NULL on update:  matches expected outcome
DB_ERROR_NOSUCHFIELD joining ON bogus column:  matches expected outcome
DB_ERROR_NOSUCHFIELD joining USING bogus column:  matches expected outcome
DB_ERROR_DIVZERO:  matches expected outcome
DB_ERROR_INVALID_NUMBER putting chars in INT column:  matches expected outcome
DB_ERROR_INVALID_NUMBER putting float in INT column:  matches expected outcome
DB_ERROR_INVALID_NUMBER putting excessive int in INT column:  matches expected outcome
DB_ERROR_INVALID_NUMBER putting int in CHAR column:  matches expected outcome
DB_ERROR_NOSUCHFIELD:  matches expected outcome
DB_ERROR_SYNTAX:  matches expected outcome
DB_ERROR_VALUE_COUNT_ON_ROW:  matches expected outcome
DB_ERROR_INVALID on CHAR column data too long:  matches expected outcome
DB_ERROR_INVALID on VARCHAR column data too long:  matches expected outcome