forked from alibaba/AliSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmysql-4.0.cfg
More file actions
7290 lines (7289 loc) · 291 KB
/
mysql-4.0.cfg
File metadata and controls
7290 lines (7289 loc) · 291 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#This file is automaticly generated by crash-me 1.61
NEG=yes # update of column= -column
###< create table crash_q (a integer)
###> OK
###< insert into crash_q values(10)
###> OK
###< update crash_q set a=-a
###> OK
###< drop table crash_q
###> OK
###
###As far as all queries returned OK, result is YES
Need_cast_for_null=no # Need to cast NULL for arithmetic
### Check if numeric_null (NULL) is 'NULL'
### Check if numeric_null (NULL) is 'NULL'
### Check if numeric_null (NULL) is 'NULL'
alter_add_col=yes # Alter table add column
###< alter table crash_q add d integer
###> OK
###
###As far as all queries returned OK, result is YES
alter_add_constraint=yes # Alter table add constraint
###< alter table crash_q add constraint c2 check(a > b)
###> OK
###
###As far as all queries returned OK, result is YES
alter_add_foreign_key=no # Alter table add foreign key
###< alter table crash_q add constraint f1 foreign key(c1)
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
###< references crash_q1(c1)
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'references crash_q1(c1)' at line 1
###
###As far as some queries didnt return OK, result is NO
alter_add_multi_col=yes # Alter table add many columns
###< alter table crash_q add (f integer,g integer)
###> OK
alter_add_primary_key=with constraint # Alter table add primary key
###< alter table crash_q1 add constraint p1 primary key(c1)
###> OK
alter_add_unique=yes # Alter table add unique
###< alter table crash_q add constraint u1 unique(c1)
###> OK
###
###As far as all queries returned OK, result is YES
alter_alter_col=yes # Alter table alter column default
###< alter table crash_q alter b set default 10
###> OK
###
###As far as all queries returned OK, result is YES
alter_change_col=yes # Alter table change column
###< alter table crash_q change a e char(50)
###> OK
###
###As far as all queries returned OK, result is YES
alter_drop_col=yes # Alter table drop column
###< alter table crash_q drop column b
###> OK
alter_drop_constraint=no # Alter table drop constraint
###< alter table crash_q drop constraint c2
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint c2' at line 1
###
###< alter table crash_q drop constraint c2 restrict
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint c2 restrict' at line 1
alter_drop_foreign_key=with drop foreign key # Alter table drop foreign key
###< alter table crash_q drop constraint f1
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint f1' at line 1
###
###< alter table crash_q drop constraint f1 restrict
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint f1 restrict' at line 1
###
###< alter table crash_q drop foreign key f1
###> OK
alter_drop_primary_key=drop primary key # Alter table drop primary key
###< alter table crash_q1 drop constraint p1 restrict
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint p1 restrict' at line 1
###
###< alter table crash_q1 drop primary key
###> OK
alter_drop_unique=with drop key # Alter table drop unique
###< alter table crash_q drop constraint u1
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint u1' at line 1
###
###< alter table crash_q drop constraint u1 restrict
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint u1 restrict' at line 1
###
###< alter table crash_q drop key u1
###> OK
alter_modify_col=yes # Alter table modify column
###< alter table crash_q modify c1 CHAR(20)
###> OK
alter_rename_table=yes # Alter table rename table
###< alter table crash_q rename to crash_q1
###> OK
###
###As far as all queries returned OK, result is YES
atomic_updates=no # atomic updates
###< create table crash_q (a integer not null,primary key (a))
###> OK
###< insert into crash_q values (2)
###> OK
###< insert into crash_q values (3)
###> OK
###< insert into crash_q values (1)
###> OK
###< update crash_q set a=a+1
###> execute error:Duplicate entry '3' for key 1
###< drop table crash_q
###> OK
###
###As far as some queries didnt return OK, result is NO
automatic_rowid=_rowid # Automatic row id
###< create table crash_q (a int not null, primary key(a))
###> OK
###< insert into crash_q values (1)
###> OK
###< select _rowid from crash_q
###> OK
###< drop table crash_q
###> OK
binary_numbers=no # binary numbers (0b1001)
###< select 0b1001
###> execute error:Unknown column '0b1001' in 'field list'
###
###As far as some queries didnt return OK, result is NO
binary_strings=no # binary strings (b'0110')
###< select b'0110'
###> execute error:Unknown column 'b' in 'field list'
###
###As far as some queries didnt return OK, result is NO
case_insensitive_strings=yes # Case insensitive compare
###
###<select b from crash_me where b = 'A'
###>a
char_is_space_filled=no # char are space filled
###
###<select concat(b,b) from crash_me where b = 'a '
###>aa
###We expected 'a a ' but got 'aa'
column_alias=yes # Column alias
###< select a as ab from crash_me
###> OK
###
###As far as all queries returned OK, result is YES
columns_in_group_by=+64 # number of columns in group by
###We are trying (example with N=5):
###create table crash_q (q1 integer,q2 integer,q3 integer,q4 integer,q5 integer)
###insert into crash_q values(1,1,1,1,1)
###insert into crash_q values(1,1,1,1,1)
###select q1,q2,q3,q4,q5 from crash_q group by q1,q2,q3,q4,q5
columns_in_order_by=+64 # number of columns in order by
###We are trying (example with N=5):
###create table crash_q (q1 integer,q2 integer,q3 integer,q4 integer,q5 integer)
###insert into crash_q values(1,1,1,1,1)
###insert into crash_q values(1,1,1,1,1)
###select * from crash_q order by q1,q2,q3,q4,q5
comment_#=yes # # as comment
###< select * from crash_me # Testing of comments
###> OK
###
###As far as all queries returned OK, result is YES
comment_--=yes # -- as comment (ANSI)
###< select * from crash_me -- Testing of comments
###> OK
###
###As far as all queries returned OK, result is YES
comment_/**/=yes # /* */ as comment
###< select * from crash_me /* Testing of comments */
###> OK
###
###As far as all queries returned OK, result is YES
comment_//=no # // as comment
###< select * from crash_me // Testing of comments
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '// Testing of comments' at line 1
###
###As far as some queries didnt return OK, result is NO
compute=no # Compute
###< select a from crash_me order by a compute sum(a) by a
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'compute sum(a) by a' at line 1
###
###As far as some queries didnt return OK, result is NO
connections=101 # Simultaneous connections (installation default)
constraint_check=syntax only # Column constraints
###< create table crash_q (a int check (a>0))
###> OK
###
###< insert into crash_q values(0)
###> OK
###
###< drop table crash_q
###> OK
###< create table crash_q (a int check (a>0))
###> OK
###
###< insert into crash_q values(0)
###> OK
###
###< drop table crash_q
###> OK
###< create table crash_q (a int check (a>0))
###> OK
###
###< insert into crash_q values(0)
###> OK
###
###< drop table crash_q
###> OK
constraint_check_named=syntax only # Named constraints
###< create table crash_q (a int ,b int, constraint abc check (a>b))
###> OK
###
###< insert into crash_q values(0,0)
###> OK
###
###< drop table crash_q
###> OK
###< create table crash_q (a int ,b int, constraint abc check (a>b))
###> OK
###
###< insert into crash_q values(0,0)
###> OK
###
###< drop table crash_q
###> OK
###< create table crash_q (a int ,b int, constraint abc check (a>b))
###> OK
###
###< insert into crash_q values(0,0)
###> OK
###
###< drop table crash_q
###> OK
constraint_check_table=syntax only # Table constraints
###< create table crash_q (a int ,b int, check (a>b))
###> OK
###
###< insert into crash_q values(0,0)
###> OK
###
###< drop table crash_q
###> OK
###< create table crash_q (a int ,b int, check (a>b))
###> OK
###
###< insert into crash_q values(0,0)
###> OK
###
###< drop table crash_q
###> OK
###< create table crash_q (a int ,b int, check (a>b))
###> OK
###
###< insert into crash_q values(0,0)
###> OK
###
###< drop table crash_q
###> OK
constraint_null=yes # NULL constraint (SyBase style)
###< create table crash_q (a int null)
###> OK
###< drop table crash_q
###> OK
###
###As far as all queries returned OK, result is YES
crash_me_safe=yes # crash me safe
crash_me_version=1.61 # crash me version
create_default=yes # default value for column
###< create table crash_q (q integer default 10 not null)
###> OK
###< drop table crash_q
###> OK
###
###As far as all queries returned OK, result is YES
create_default_func=no # default value function for column
###< create table crash_q (q integer not null,q1 integer default (1+1))
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(1+1))' at line 1
###< drop table crash_q
###> execute error:Unknown table 'crash_q'
###
###As far as some queries didnt return OK, result is NO
create_if_not_exists=yes # create table if not exists
###< create table crash_q (q integer)
###> OK
###< create table if not exists crash_q (q integer)
###> OK
###
###As far as all queries returned OK, result is YES
create_index=yes # create index
###< create index crash_q on crash_me (a)
###> OK
create_schema=no # Create SCHEMA
###< create schema crash_schema create table crash_q (a int) create table crash_q2(b int)
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema crash_schema create table crash_q (a int) create table c
###< drop schema crash_schema cascade
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema crash_schema cascade' at line 1
###
###As far as some queries didnt return OK, result is NO
create_table_select=yes # create table from select
###< create table crash_q SELECT * from crash_me
###> OK
cross_join=yes # cross join (same as from a,b)
###< select crash_me.a from crash_me cross join crash_me3
###> OK
###
###As far as all queries returned OK, result is YES
date_as_string=yes # String functions on date columns
###< create table crash_me2 (a date not null)
###> OK
###< insert into crash_me2 values ('1998-03-03')
###> OK
###
###<select left(a,4) from crash_me2
###>1998
###
###< drop table crash_me2
###> OK
date_format_EUR=error # Supports DD.MM.YYYY (EUR) format
###< insert into crash_me_d(a) values ('16.08.1963')
###> OK
###
###<select a from crash_me_d
###>0000-00-00
###We expected '1963-08-16' but got '0000-00-00'
###
###< delete from crash_me_d
###> OK
date_format_EUR_with_date=error # Supports DATE 'DD.MM.YYYY' (EUR) format
###< insert into crash_me_d(a) values (DATE '16.08.1963')
###> OK
###
###<select a from crash_me_d
###>0000-00-00
###We expected '1963-08-16' but got '0000-00-00'
###
###< delete from crash_me_d
###> OK
date_format_ISO=yes # Supports YYYY-MM-DD (ISO) format
###< insert into crash_me_d(a) values ('1963-08-16')
###> OK
###
###<select a from crash_me_d
###>1963-08-16
###
###< delete from crash_me_d
###> OK
date_format_ISO_with_date=yes # Supports DATE 'YYYY-MM-DD' (ISO) format
###< insert into crash_me_d(a) values (DATE '1963-08-16')
###> OK
###
###<select a from crash_me_d
###>1963-08-16
###
###< delete from crash_me_d
###> OK
date_format_USA=error # Supports MM/DD/YYYY format
###< insert into crash_me_d(a) values ('08/16/1963')
###> OK
###
###<select a from crash_me_d
###>0000-00-00
###We expected '1963-08-16' but got '0000-00-00'
###
###< delete from crash_me_d
###> OK
date_format_USA_with_date=error # Supports DATE 'MM/DD/YYYY' format
###< insert into crash_me_d(a) values (DATE '08/16/1963')
###> OK
###
###<select a from crash_me_d
###>0000-00-00
###We expected '1963-08-16' but got '0000-00-00'
###
###< delete from crash_me_d
###> OK
date_format_YYYYMMDD=yes # Supports YYYYMMDD format
###< insert into crash_me_d(a) values ('19630816')
###> OK
###
###<select a from crash_me_d
###>1963-08-16
###
###< delete from crash_me_d
###> OK
date_format_YYYYMMDD_with_date=yes # Supports DATE 'YYYYMMDD' format
###< insert into crash_me_d(a) values (DATE '19630816')
###> OK
###
###<select a from crash_me_d
###>1963-08-16
###
###< delete from crash_me_d
###> OK
date_format_inresult=iso # Date format in result
###< insert into crash_me_d values( sysdate() )
###> OK
###
###< select a from crash_me_d
###> 2003-12-24
###< delete from crash_me_d
###> OK
###< insert into crash_me_d values( sysdate() )
###> OK
###
###< select a from crash_me_d
###> 2004-05-20
###< delete from crash_me_d
###> OK
###< insert into crash_me_d values( sysdate() )
###> OK
###
###< select a from crash_me_d
###> 2004-05-20
###< delete from crash_me_d
###> OK
date_infinity=error # Supports 'infinity dates
###< create table crash_me2 (a date not null)
###> OK
###< insert into crash_me2 values ('infinity')
###> OK
###
###<select a from crash_me2
###>0000-00-00
###We expected 'infinity' but got '0000-00-00'
###
###< drop table crash_me2
###> OK
date_last=yes # Supports 9999-12-31 dates
###< create table crash_me2 (a date not null)
###> OK
###< insert into crash_me2 values ('9999-12-31')
###> OK
###
###<select a from crash_me2
###>9999-12-31
###
###< drop table crash_me2
###> OK
date_one=yes # Supports 0001-01-01 dates
###< create table crash_me2 (a date not null)
###> OK
###< insert into crash_me2 values ('0001-01-01')
###> OK
###
###<select a from crash_me2
###>0001-01-01
###
###< drop table crash_me2
###> OK
date_with_YY=yes # Supports YY-MM-DD 2000 compilant dates
###< create table crash_me2 (a date not null)
###> OK
###< insert into crash_me2 values ('98-03-03')
###> OK
###
###<select a from crash_me2
###>1998-03-03
###
###< drop table crash_me2
###> OK
###
###< create table crash_me2 (a date not null)
###> OK
###< insert into crash_me2 values ('10-03-03')
###> OK
###
###<select a from crash_me2
###>2010-03-03
###
###< drop table crash_me2
###> OK
date_zero=yes # Supports 0000-00-00 dates
###< create table crash_me2 (a date not null)
###> OK
###< insert into crash_me2 values ('0000-00-00')
###> OK
###
###<select a from crash_me2
###>0000-00-00
###
###< drop table crash_me2
###> OK
domains=no # Domains (ANSI SQL)
###< create domain crash_d as varchar(10) default 'Empty' check (value <> 'abcd')
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'domain crash_d as varchar(10) default 'Empty' check (value <> '
###< create table crash_q(a crash_d, b int)
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'crash_d, b int)' at line 1
###< insert into crash_q(a,b) values('xyz',10)
###> execute error:Table 'test.crash_q' doesn't exist
###< insert into crash_q(b) values(10)
###> execute error:Table 'test.crash_q' doesn't exist
###< drop table crash_q
###> execute error:Unknown table 'crash_q'
###< drop domain crash_d
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'domain crash_d' at line 1
###
###As far as some queries didnt return OK, result is NO
dont_require_cast_to_float=yes # No need to cast from integer to float
###< select exp(1)
###> OK
###
###As far as all queries returned OK, result is YES
double_quotes=yes # Double '' as ' in strings
###
###<select 'Walker''s'
###>Walker's
drop_if_exists=yes # drop table if exists
###< create table crash_q (q integer)
###> OK
###< drop table if exists crash_q
###> OK
###
###As far as all queries returned OK, result is YES
drop_index=with 'ON' # drop index
###< drop index crash_q
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
###
###< drop index crash_q from crash_me
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'from crash_me' at line 1
###
###< drop index crash_q on crash_me
###> OK
drop_requires_cascade=no # drop table require cascade/restrict
###< create table crash_me (a integer not null)
###> OK
###< drop table crash_me
###> OK
###< create table crash_me (a integer not null)
###> OK
###< drop table crash_me
###> OK
###< create table crash_me (a integer not null)
###> OK
###< drop table crash_me
###> OK
drop_restrict=yes # drop table with cascade/restrict
###< create table crash_q (a int)
###> OK
###< drop table crash_q restrict
###> OK
###
###As far as all queries returned OK, result is YES
end_colon=yes # allows end ';'
###< select * from crash_me;
###> OK
###
###As far as all queries returned OK, result is YES
except=no # except
###< select * from crash_me except select * from crash_me3
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select * from crash_me3' at line 1
###
###As far as some queries didnt return OK, result is NO
except_all=no # except all
###< select * from crash_me except all select * from crash_me3
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'all select * from crash_me3' at line 1
###
###As far as some queries didnt return OK, result is NO
except_all_incompat=no # except all (incompatible lists)
###< select * from crash_me except all select * from crash_me2
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'all select * from crash_me2' at line 1
###
###As far as some queries didnt return OK, result is NO
except_incompat=no # except (incompatible lists)
###< select * from crash_me except select * from crash_me2
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select * from crash_me2' at line 1
###
###As far as some queries didnt return OK, result is NO
field_name_case=yes # case independent field names
###< create table crash_q (q integer)
###> OK
###< insert into crash_q(Q) values (1)
###> OK
###< drop table crash_q
###> OK
###
###As far as all queries returned OK, result is YES
float_int_expr=yes # mixing of integer and float in expression
###< select 1+1.0
###> OK
###
###As far as all queries returned OK, result is YES
foreign_key=syntax only # foreign keys
###< create table crash_me_qf (a integer not null,primary key (a))
###> OK
###
###< create table crash_me_qf2 (a integer not null,foreign key (a) references crash_me_qf (a))
###> OK
###
###< insert into crash_me_qf values (1)
###> OK
###
###< insert into crash_me_qf2 values (2)
###> OK
###
###< drop table crash_me_qf2
###> OK
###
###< drop table crash_me_qf
###> OK
###< create table crash_me_qf (a integer not null,primary key (a))
###> OK
###
###< create table crash_me_qf2 (a integer not null,foreign key (a) references crash_me_qf (a))
###> OK
###
###< insert into crash_me_qf values (1)
###> OK
###
###< insert into crash_me_qf2 values (2)
###> OK
###
###< drop table crash_me_qf2
###> OK
###
###< drop table crash_me_qf
###> OK
###< create table crash_me_qf (a integer not null,primary key (a))
###> OK
###
###< create table crash_me_qf2 (a integer not null,foreign key (a) references crash_me_qf (a))
###> OK
###
###< insert into crash_me_qf values (1)
###> OK
###
###< insert into crash_me_qf2 values (2)
###> OK
###
###< drop table crash_me_qf2
###> OK
###
###< drop table crash_me_qf
###> OK
full_outer_join=no # full outer join
###< select crash_me.a from crash_me full join crash_me2 ON
### crash_me.a=crash_me2.a
###> execute error:Unknown table 'crash_me' in field list
###
###As far as some queries didnt return OK, result is NO
func_extra_!=yes # Function NOT as '!' in SELECT
###
###<select ! 1
###>0
func_extra_%=yes # Function MOD as %
###
###<select 10%7
###>3
func_extra_&=yes # Function & (bitwise and)
###
###<select 5 & 3
###>1
func_extra_&&=yes # Function AND as '&&'
###
###<select 1=1 && 2=2
###>1
func_extra_<>=yes # Function <> in SELECT
###
###<select 1<>1
###>0
func_extra_==yes # Function =
###
###<select (1=1)
###>1
func_extra_add_months=no # Function ADD_MONTHS
###
###<select add_months('1997-01-01',1) from crash_me_d
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('1997-01-01',1) from crash_me_d' at line 1
func_extra_adddate=yes # Function ADDDATE
###
###<select ADDDATE('2002-12-01',3) from crash_me_d
###>2002-12-04
func_extra_addtime=yes # Function ADDTIME
###
###<select ADDTIME('20:02:12','00:00:03')
###>20:02:15
func_extra_alpha=no # Function ALPHA
###
###<select alpha('Aâ',2)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('Aâ',2)' at line 1
func_extra_and_or=yes # Function AND and OR in SELECT
###
###<select 1=1 AND 2=2
###>1
func_extra_ascii_char=no # Function ASCII_CHAR
###
###<select ASCII_CHAR(65)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(65)' at line 1
func_extra_ascii_code=no # Function ASCII_CODE
###
###<select ASCII_CODE('A')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('A')' at line 1
func_extra_ascii_string=error # Function ASCII in string cast
###
###<select ascii('a')
###>97
###We expected 'a' but got '97'
func_extra_atn2=no # Function ATN2
###
###<select atn2(1,0)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(1,0)' at line 1
func_extra_auto_num2string=yes # Function automatic num->string convert
###
###<select concat('a',2)
###>a2
func_extra_auto_string2num=yes # Function automatic string->num convert
###
###<select '1'+2
###>3
func_extra_between=yes # Function BETWEEN in SELECT
###
###<select 5 between 4 and 6
###>1
func_extra_binary_shifts=yes # Function << and >> (bitwise shifts)
###
###<select (1 << 4) >> 2
###>4
func_extra_bit_count=yes # Function BIT_COUNT
###
###<select bit_count(5)
###>2
func_extra_ceil=yes # Function CEIL
###
###<select ceil(-4.5)
###>-4
func_extra_char_date=no # Function CHAR (conversation date)
###
###<select CHAR(a,EUR) from crash_me_d
###> execute failed:Unknown column 'EUR' in 'field list'
func_extra_charindex=no # Function CHARINDEX
###
###<select charindex('a','crash')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('a','crash')' at line 1
func_extra_chr=no # Function CHR
###
###<select CHR(65)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(65)' at line 1
func_extra_chr_str=no # Function CHR (any type to string)
###
###<select CHR(67)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(67)' at line 1
func_extra_concat_as_+=error # Function concatenation with +
###
###<select 'abc' + 'def'
###>0
###We expected 'abcdef' but got '0'
func_extra_concat_list=yes # Function CONCAT(list)
###
###<select concat('a','b','c','d')
###>abcd
func_extra_convert=no # Function CONVERT
###
###<select convert(CHAR,5)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '5)' at line 1
func_extra_cosh=no # Function COSH
###
###<select cosh(0)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(0)' at line 1
func_extra_date=yes # Function DATE
###
###<select date('1963-08-16') from crash_me_d
###>1963-08-16
func_extra_date_format=yes # Function DATE_FORMAT
###
###<select date_format('1997-01-02 03:04:05','M W D Y y m d h i s w') from crash_me_d
###>M W D Y y m d h i s w
func_extra_dateadd=no # Function DATEADD
###
###<select dateadd(day,3,'1997-11-30') from crash_me_d
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(day,3,'1997-11-30') from crash_me_d' at line 1
func_extra_datediff=no # Function DATEDIFF
###
###<select datediff(month,'Oct 21 1997','Nov 30 1997') from crash_me_d
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''Nov 30 1997') from crash_me_d' at line 1
func_extra_datediff2arg=yes # Function DATEDIFF (2 arg)
###
###<select DATEDIFF('2002-12-04','2002-12-01') from crash_me_d
###>3
func_extra_datename=no # Function DATENAME
###
###<select datename(month,'Nov 30 1997') from crash_me_d
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(month,'Nov 30 1997') from crash_me_d' at line 1
func_extra_datepart=no # Function DATEPART
###
###<select datepart(month,'July 20 1997') from crash_me_d
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(month,'July 20 1997') from crash_me_d' at line 1
func_extra_day=yes # Function DAY
###
###<select DAY('2002-12-01') from crash_me_d
###>1
func_extra_decode=no # Function DECODE
###
###<select DECODE('S-103','T72',1,'S-103',2,'Leopard',3)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1,'S-103',2,'Leopard',3)' at line 1
func_extra_ebcdic_string=no # Function EBCDIC in string cast
###
###<select ebcdic('a')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('a')' at line 1
func_extra_elt=yes # Function ELT
###
###<select elt(2,'ONE','TWO','THREE')
###>TWO
func_extra_encrypt=yes # Function ENCRYPT
###
###<select encrypt('hello')
###>1Wi1s0yzcGqMY
func_extra_expand2arg=no # Function EXPAND
###
###<select expand('abcd',6)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('abcd',6)' at line 1
func_extra_field=yes # Function FIELD
###
###<select field('IBM','NCA','ICL','SUN','IBM','DIGITAL')
###>4
func_extra_fixed=no # Function FIXED
###
###<select fixed(222.6666,10,2)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(222.6666,10,2)' at line 1
func_extra_float=no # Function FLOAT
###
###<select float(6666.66,4)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(6666.66,4)' at line 1
func_extra_format=yes # Function FORMAT
###
###<select format(1234.5555,2)
###>1,234.56
func_extra_from_days=yes # Function FROM_DAYS
###
###<select from_days(729024) from crash_me_d
###>1996-01-01
func_extra_from_unixtime=yes # Function FROM_UNIXTIME
###
###<select from_unixtime(0) from crash_me_d
###>1970-01-01 02:00:00
func_extra_getdate=no # Function GETDATE
###
###<select getdate()
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '()' at line 1
func_extra_greatest=yes # Function GREATEST
###
###<select greatest('HARRY','HARRIOT','HAROLD')
###>HARRY
func_extra_hex=yes # Function HEX
###
###<select HEX('A')
###>41
func_extra_if=yes # Function IF
###
###<select if(5,6,7)
###>6
func_extra_in_num=yes # Function IN on numbers in SELECT
###
###<select 2 in (3,2,5,9,5,1)
###>1
func_extra_in_str=yes # Function IN on strings in SELECT
###
###<select 'monty' in ('david','monty','allan')
###>1
func_extra_index=no # Function INDEX
###
###<select index('abcdefg','cd',1,1)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'index('abcdefg','cd',1,1)' at line 1
func_extra_initcap=no # Function INITCAP
###
###<select initcap('the soap')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('the soap')' at line 1
func_extra_instr=yes # Function LOCATE as INSTR
###
###<select instr('hello','ll')
###>3
func_extra_instr_oracle=no # Function INSTR (Oracle syntax)
###
###<select INSTR('CORPORATE FLOOR','OR',3,2)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '3,2)' at line 1
func_extra_instrb=no # Function INSTRB
###
###<select INSTRB('CORPORATE FLOOR','OR',5,2)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('CORPORATE FLOOR','OR',5,2)' at line 1
func_extra_interval=yes # Function INTERVAL
###
###<select interval(55,10,20,30,40,50,60,70,80,90,100)
###>5
func_extra_last_day=yes # Function LAST_DAY
###
###<select last_day('1997-04-01') from crash_me_d
###>1997-04-30
func_extra_last_insert_id=yes # Function LAST_INSERT_ID
###
###<select last_insert_id()
###>0
func_extra_least=yes # Function LEAST
###
###<select least('HARRY','HARRIOT','HAROLD')
###>HAROLD
func_extra_length=error # Function LENGTH
###
###<select length(1)
###>1
###We expected '2' but got '1'
func_extra_lengthb=no # Function LENGTHB
###
###<select lengthb('CANDIDE')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('CANDIDE')' at line 1
func_extra_lfill3arg=no # Function LFILL (3 arg)
###
###<select lfill('abcd','.',6)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('abcd','.',6)' at line 1
func_extra_like=yes # Function LIKE in SELECT
###
###<select 'a' like 'a%'
###>1
func_extra_like_escape=yes # Function LIKE ESCAPE in SELECT
###
###<select '%' like 'a%' escape 'a'
###>1
func_extra_ln=yes # Function LN
###
###<select ln(95)
###>4.553877
func_extra_log(m_n)=yes # Function LOG(m,n)
###
###<select log(10,100)
###>2.000000
func_extra_logn=no # Function LOGN
###
###<select logn(2)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(2)' at line 1
func_extra_lpad=yes # Function LPAD
###
###<select lpad('hi',4,'??')
###>??hi
func_extra_ltrim2arg=no # Function LTRIM (2 arg)
###
###<select ltrim('..abcd..','.')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''.')' at line 1
func_extra_makedate=yes # Function MAKEDATE
###
###<select MAKEDATE(1963,228) from crash_me_d
###>1963-08-16
func_extra_maketime=yes # Function MAKETIME
###
###<select MAKETIME(20,02,12)
###>20:02:12
func_extra_mapchar=no # Function MAPCHAR
###
###<select mapchar('Aâ')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('Aâ')' at line 1
func_extra_mdy=no # Function MDY
###
###<select mdy(7,1,1998) from crash_me_d
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(7,1,1998) from crash_me_d' at line 1
func_extra_microsecond=error # Function MICROSECOND
###
###<select MICROSECOND('19630816200212111111')
###>11
###We expected '111111' but got '11'
func_extra_mid=yes # Function SUBSTRING as MID
###
###<select mid('hello',3,2)
###>ll
func_extra_months_between=no # Function MONTHS_BETWEEN
###
###<select months_between('1997-02-02','1997-01-01') from crash_me_d
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('1997-02-02','1997-01-01') from crash_me_d' at line 1
func_extra_noround=no # Function NOROUND
###< select noround(22.6)
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(22.6)' at line 1
###< select noround(22.6)
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(22.6)' at line 1
###< select noround(22.6)
###> execute error:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(22.6)' at line 1
func_extra_not=yes # Function NOT in SELECT
###
###<select not false
###>1
func_extra_not_between=yes # Function NOT BETWEEN in SELECT
###
###<select 5 not between 4 and 6
###>0
func_extra_not_like=yes # Function NOT LIKE in SELECT
###
###<select 'a' not like 'a%'
###>0
func_extra_num=no # Function NUM
###
###<select NUM('2123')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('2123')' at line 1
func_extra_odbc_convert=no # Function ODBC CONVERT
###
###<select convert(5,SQL_CHAR)
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
func_extra_password=yes # Function PASSWORD
###
###<select password('hello')
###>*6B4F89A54E2D27ECD7E8DA05B4AB8FD9D1D8B119
func_extra_paste=no # Function PASTE
###
###<select paste('ABCDEFG',3,2,'1234')
###> execute failed:You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '('ABCDEFG',3,2,'1234')' at line 1
func_extra_patindex=no # Function PATINDEX
###
###<select patindex('%a%','crash')