~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_str.test

  • Committer: Brian Aker
  • Date: 2010-11-08 18:54:26 UTC
  • mto: (1921.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1916.
  • Revision ID: brian@tangent.org-20101108185426-fymkf2xnelupf11x
Rename lock methods to be style + well make sense.

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
 
 
477
 
select load_file("lkjlkj");
478
 
select ifnull(load_file("lkjlkj"),"it's null");
 
473
--disable_query_log
 
474
let $bad_test_file = "$DRIZZLETEST_VARDIR/lkjlkj" ;
 
475
--enable_query_log
 
476
let $replace_substring = `SELECT SUBSTRING($bad_test_file,1,128)`;
 
477
--replace_result $replace_substring DRIZZLETEST_BAD_FILE $bad_test_file DRIZZLETEST_BAD_FILE 
 
478
--error ER_TEXTFILE_NOT_READABLE
 
479
eval select load_file($bad_test_file);
479
480
 
480
481
#
481
482
# Bug#18243: REVERSE changes its argument