~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/cast.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
  cast('a  ' AS char(2)) as c4,
46
46
  cast('a'   AS char(2)) as c5;
47
47
 
48
 
##
49
 
## CAST to NCHAR with/without length
50
 
##
51
 
#select
52
 
#  cast('��'  AS char)    as c1,
53
 
#  cast('� '  AS char)    as c2,
54
 
#  cast('���' AS char(2)) as c3,
55
 
#  cast('�  ' AS char(2)) as c4,
56
 
#  cast('�'   AS char(2)) as c5;
 
48
#
 
49
# CAST to NCHAR with/without length
 
50
#
 
51
select
 
52
  cast('��'  AS char)    as c1,
 
53
  cast('� '  AS char)    as c2,
 
54
  cast('���' AS char(2)) as c3,
 
55
  cast('�  ' AS char(2)) as c4,
 
56
  cast('�'   AS char(2)) as c5;
57
57
 
58
58
# BUG in drizzletest - can't handle these chars right
59
59
# # Should throw an error about incorrect
129
129
#
130
130
# Bug #17903: cast to char results in binary
131
131
#
 
132
select hex(cast('a' as char(2) binary));
132
133
select hex(cast('a' as binary(2)));
 
134
select hex(cast('a' as char(2) binary));
133
135
 
134
136
 
135
137
#