ab25fa9e90
expression: Make UUID() a dynamic function ( #3207 )
2017-05-04 10:16:28 +08:00
31314690a9
expression: remove baseExpr struct ( #3202 )
2017-05-03 16:15:53 +08:00
d1876810e3
expression: add EvalXXX functions for Constant and Column ( #3128 )
2017-05-03 15:17:06 +08:00
cfa1b19628
expression: rewrite compare built-in functions ( #3155 )
2017-05-02 19:59:04 +08:00
4b82b6f4cf
err assigned and not used ( #3178 )
2017-05-02 16:16:12 +08:00
f9340d8171
*: fix BIN test and check error for QUARTER. ( #3194 )
...
The BIN test puts a datum slice into a datum, which is an unknown datum type, `eval` returns error.
2017-05-02 15:18:15 +08:00
20be357e86
expression: fix buildin function found_rows() ( #3134 )
...
fix issue #3131 .
2017-05-02 11:40:10 +08:00
a9a33b0209
fix typo ( #3179 )
2017-04-29 00:24:27 +08:00
c646b59927
*: fix data race in join. ( #3159 )
2017-04-27 23:26:15 +08:00
350c79382a
*: support new table reader executor. ( #3133 )
2017-04-27 13:27:26 +08:00
4822322718
add buildin function UTC_TIME ( #3145 )
2017-04-26 22:07:49 +08:00
2693f264a7
*: Add truncate function in math ( #3077 )
2017-04-26 10:03:32 +08:00
b08ad4069a
expression: add interfaces for refactoring typeinferer ( #3094 )
2017-04-26 09:53:29 +08:00
ee312bfd71
expression: Fix code style according to goword ( #3123 )
...
ref https://github.com/pingcap/tidb/issues/3120
2017-04-25 23:35:45 +08:00
7699d3fb76
*: refine EvalBool function. ( #3139 )
2017-04-25 22:07:17 +08:00
8c51d4b4b1
Builtin: Add a new built-in functin MAKEDATE ( #3105 )
2017-04-24 08:09:12 +08:00
6518819274
builtin: inet6_aton function ( #3051 )
2017-04-24 07:57:31 +08:00
5243f6f461
expression: fixed pow/power return wrong error message when there more than two arguments. ( #3114 )
2017-04-23 21:13:27 +08:00
3b82630ff4
builtin bit_count ( #3087 )
2017-04-23 21:05:22 +08:00
1d8dbb1682
built_in string right ( #3088 )
2017-04-23 20:37:15 +08:00
050e7b32e2
expression: fix bug in sleep function. ( #3101 )
2017-04-21 13:31:13 +08:00
5d146946df
builtin: impl export_set ( #3036 )
2017-04-20 19:37:12 +08:00
c4764329f3
expression: add builtin function 'period_add' ( #3001 )
2017-04-20 13:23:04 +08:00
12f07daff2
expression: make group_concat handle character correct ( #2821 ) ( #3083 )
2017-04-19 22:06:03 +08:00
78d4520199
*: resolve conflict on 'in' and add builtin position ( #3079 )
2017-04-19 21:30:48 +08:00
c219218a19
fix REPLACE FUNC ( #3082 )
...
when the from_str is "", use REPLACE FUNC.
+-----------------------------------------------------------------------+
| REPLACE('www.mysql.com', '', 'tidb') |
+-----------------------------------------------------------------------+
| tidbwtidbwtidbwtidb.tidbmtidbytidbstidbqtidbltidb.tidbctidbotidbmtidb |
+-----------------------------------------------------------------------+
1 row in set (0.01 sec)
But the correct result should be:
+-----------------------------------------------------------------------+
| REPLACE('www.mysql.com', '', 'tidb') |
+-----------------------------------------------------------------------+
| www.mysql.com |
+-----------------------------------------------------------------------+
1 row in set (0.01 sec)
2017-04-19 12:45:51 +08:00
59154905aa
*: rename table-driven tests name. ( #3081 )
2017-04-19 10:02:57 +08:00
42dec329fe
session: return correct LastInsertID. ( #3071 )
...
When insert into an auto_increment column with a given value, the last insert id write to client should be the value.
2017-04-18 18:53:24 +08:00
4c9452f944
Builtin: 'LOCATE' dealing with case sensitivity and utf8 characters. ( #2960 )
2017-04-18 17:23:00 +08:00
05f9a5f838
builtin:func to_base64() ( #3070 )
...
implement to_base64 and fix some case for from_base64
2017-04-18 16:01:59 +08:00
d52b257fb3
builtin: implement sec_to_time function ( #3026 )
2017-04-17 17:51:26 +08:00
8ce4a6ad14
builtin: add builtin-function 'to_seconds' ( #2984 )
2017-04-17 10:27:36 +08:00
97bfafa702
*: Use AggregationFunction instead of evaluate in aggregation ( #3040 )
2017-04-14 19:49:00 +08:00
2cce6080d6
util/types: use GenByArgs for ErrOverflow. ( #3038 )
...
ErrOverflow has changed to a format, we need to use GenByArgs to get a valid message.
2017-04-12 13:12:41 +08:00
f5270adcf9
fixed math operation returned wrong error code ( #3017 )
2017-04-12 11:37:38 +08:00
d25805b639
expression: use MVMap for distinct checker. ( #3033 )
...
Reduce memory allocation and GC overhead.
2017-04-11 15:44:10 +08:00
543a368e16
expression: add NewDistAggFunc interface for mock tikv. ( #3009 )
2017-04-10 19:13:56 +08:00
9e4961a792
built-in: add time-to-sec built-in function ( #2987 )
2017-04-10 18:23:33 +08:00
1ec85a7b1c
*: add three more builtin definitions ( #3016 )
2017-04-10 14:26:16 +08:00
d88fdecb7b
expression: fix pb2expr panic. ( #3020 )
...
every time we get builtinFunctionSignature, we should copy it.
A temp fix is to get function class directly.
2017-04-10 11:23:05 +08:00
b1a1e94bd5
expression/builtin: fix inet6_ntoa ( #3012 )
2017-04-07 19:06:54 +08:00
445116a415
Builtin: add builtin function 'TO_DAYS' ( #2983 )
2017-04-07 12:35:00 +08:00
3d21df2f74
expression: let store be able to use expression pkg. ( #2999 )
2017-04-06 17:52:28 +08:00
a040dc8421
Builtin: add builtin function "TIMESTAMPADD" ( #2992 )
2017-04-06 12:41:32 +08:00
61228e5a96
add builtin function inet_aton ( #2882 )
2017-04-05 23:14:32 +08:00
a125e5378c
add mysql builtin function cos,from_base64,tan,cot ( #2977 )
2017-04-05 22:35:28 +08:00
aaa6184670
*: implement index nested loop join ( #2945 )
2017-04-01 15:12:20 +08:00
f66c46953d
*: remove MySQL enterprise functions definition. ( #2973 )
2017-03-31 18:03:19 +08:00
5516ca56e6
builtin: add compress funciton ( #2879 )
2017-03-31 13:33:00 +08:00
ff3abdfd27
builtin: add format built-in function ( #2883 )
2017-03-31 13:21:08 +08:00