~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/ctype_ucs.test

  • Committer: Brian Aker
  • Date: 2008-10-02 19:18:43 UTC
  • mto: (438.4.1 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 435.
  • Revision ID: brian@tangent.org-20081002191843-tw3nnufik8qwf9rz
Removed UNSIGNED from parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
359
359
#
360
360
# This bug also helped to find another problem that
361
361
# INSERT of a UCS2 string containing a negative number
362
 
# into a unsigned int column didn't produce warnings.
 
362
# into a int column didn't produce warnings.
363
363
# This test covers both problems.
364
364
#
365
365
SET collation_connection='ucs2_swedish_ci';
368
368
INSERT INTO t1 VALUES ('-1');
369
369
SELECT * FROM t1;
370
370
DROP TABLE t1;
371
 
CREATE TABLE t1 (Field1 int(10) unsigned default '0');
 
371
CREATE TABLE t1 (Field1 int(10) default '0');
372
372
# this should generate a "Data truncated" warning
373
373
INSERT INTO t1 VALUES ('-1');
374
374
DROP TABLE t1;