~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/strict.test

  • Committer: Brian Aker
  • Date: 2010-06-22 19:48:34 UTC
  • Revision ID: brian@gaz-20100622194834-xrx8ujqxj22m60kq
Merge in changes to call error on bad data input.

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
CREATE TABLE t1 (col1 CHAR(5), col2 VARCHAR(6));
213
213
INSERT INTO t1 VALUES ('hello', 'hello');
214
214
INSERT INTO t1 VALUES ('he', 'he');
 
215
--error 1406
215
216
INSERT INTO t1 VALUES ('hello   ', 'hello ');
216
217
--error 1406
217
218
INSERT INTO t1 (col1) VALUES ('hellobob');
218
219
--error 1406
219
220
INSERT INTO t1 (col2) VALUES ('hellobob');
 
221
--error 1406
220
222
INSERT INTO t1 (col2) VALUES ('hello  ');
221
223
--error 1406
222
224
UPDATE t1 SET col1 ='hellobob' WHERE col1 ='he';