~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_str.test

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:27:09 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032709-oyvfrc6eb8fzj0mr
fix docs warning: docs/unlock.rst:2: (WARNING/2) Title underline too short.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
 
99
99
select quote('\'\"\\test');
100
100
select quote(concat('abc\'', '\\cba'));
 
101
--error ER_DIVISION_BY_ZERO
101
102
select quote(1/0), quote('\0\Z');
102
103
select length(quote(concat(char(0),"test")));
103
104
select hex(quote(concat(char(224),char(227),char(230),char(231),char(232),char(234),char(235))));
252
253
explain extended select hex(130);
253
254
explain extended select binary 'HE';
254
255
explain extended select collation(conv(130,16,10));
255
 
explain extended select coercibility(conv(130,16,10));
256
256
explain extended select length('\n\t\r\b\0\_\%\\');
257
257
explain extended select concat('monty',' was here ','again');
258
258
explain extended select length('hello');
295
295
#
296
296
 
297
297
create table t1 (c1 INT, c2 INT);
298
 
--error 1264
 
298
--error ER_WARN_DATA_OUT_OF_RANGE
299
299
insert into t1 values ('21474836461','21474836461');
300
 
--error 1264
 
300
--error ER_WARN_DATA_OUT_OF_RANGE
301
301
insert into t1 values ('-21474836461','-21474836461');
302
302
select * from t1;
303
303
drop table t1;
336
336
  PRIMARY KEY  (id)
337
337
) ENGINE=MyISAM;
338
338
 
339
 
--error 1264
 
339
--error ER_WARN_DATA_OUT_OF_RANGE
340
340
INSERT INTO t1 VALUES ('0','16307858876001849059');
341
341
 
342
342
SELECT CONV('e251273eb74a8ee3', 16, 10);
470
470
--disable_metadata
471
471
drop table t1;
472
472
 
473
 
#
474
 
# Bug #10418: LOAD_FILE does not behave like in manual if file does not exist
475
 
#
476
473
 
 
474
--error ER_TEXTFILE_NOT_READABLE
477
475
select load_file("lkjlkj");
478
 
select ifnull(load_file("lkjlkj"),"it's null");
479
476
 
480
477
#
481
478
# Bug#18243: REVERSE changes its argument