~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

Viewing changes to ext/pdo_mysql/tests/bug_44454.phpt

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions 
      already in universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
                        }
34
34
                }
35
35
 
 
36
                $db->exec('DROP TABLE IF EXISTS test');
 
37
                $db->exec('CREATE TABLE test(a INT, b INT, UNIQUE KEY idx_ab (a, b))');
 
38
                $db->exec('INSERT INTO test(a, b) VALUES (1, 1)');
 
39
 
36
40
        } catch (Exception $e) {
37
41
                printf("... While error %s\n", $e->getMessage()); ;
38
42
        }
79
83
... PDO  - array (
80
84
  0 => '23000',
81
85
  1 => 1062,
82
 
  2 => 'Duplicate entry \'1-1\' for key 1',
 
86
  2 => 'Duplicate entry \'1-1\' for key %s',
83
87
)
84
88
... SELECT has returned 1 row...
85
89
... INSERT should fail...
87
91
... PDO  - array (
88
92
  0 => '23000',
89
93
  1 => 1062,
90
 
  2 => 'Duplicate entry \'1-1\' for key 1',
 
94
  2 => 'Duplicate entry \'1-1\' for key %s',
91
95
)
92
96
 
93
97
Emulated Prepared Statements
97
101
... PDO  - array (
98
102
  0 => '23000',
99
103
  1 => 1062,
100
 
  2 => 'Duplicate entry \'1-1\' for key 1',
 
104
  2 => 'Duplicate entry \'1-1\' for key %s',
101
105
)
102
106
... SELECT has returned 1 row...
103
107
... INSERT should fail...
105
109
... PDO  - array (
106
110
  0 => '23000',
107
111
  1 => 1062,
108
 
  2 => 'Duplicate entry \'1-1\' for key 1',
 
112
  2 => 'Duplicate entry \'1-1\' for key %s',
109
113
)
110
114
done!