92cb6345fb
MCOL-1428 Fix SUBTIME() with day in WHERE
...
SUBTIME() with day number used the DATETIME funciton instead of TIME so
got stuck in an endless loop. Now uses the TIME calculations instead.
2018-06-04 22:03:50 +01:00
fd6a2f46a5
MCOL-1429 Fix DAYNAME()/MONTHNAME() NULL result
...
For NULL result -1 cast to a uint was used as an array index. This
caused crashes with TIME data type.
2018-06-04 20:47:33 +01:00
f850f8b0d0
MCOL-807 HOUR() is always positive
...
It is undocumented but when MariaDB gets a negative time in the HOUR()
function it always returns a positive value. This does the same for us.
2018-06-04 15:17:56 +01:00
1d8964ec0d
Fix code style
2018-05-31 14:44:48 +01:00
53f281933a
Merge branch 'develop-1.1' into 1.1-merge-up-20180531
2018-05-31 14:43:52 +01:00
baf42e7b4a
MCOL-1390 Fix SUBSTRING_INDEX for negative count
...
If negative count number is more than the number of characters in the
string then it should always return the string.
For example if a table contains SUBSTRING_INDEX('zzz', 'z', -5) should
return 'zzz'. Before this patch it would return NULL.
2018-05-10 18:32:22 +01:00
305bae1bcb
MCOL-1402 Fix addtime/subtime
...
The changes to addtime/subtime for TIME datatype broke the handling of
the adding and subtracting of time. This fixes that.
2018-05-09 20:34:56 +01:00
c40903de9b
MCOL-392 Apply astyle
...
Make this branch apply our style guidelines
2018-05-01 09:52:26 +01:00
4ef4286022
MCOL-392 Fix time_to_sec() for negative time
2018-05-01 07:25:25 +01:00
dfc351b730
MCOL-392 fix negative zero hours
...
Also fix some functions that were not behaving correctly
2018-04-30 22:08:10 +01:00
3c090647af
MCOL-392 Fix microsecond and nullif for TIME
2018-04-30 11:34:58 +01:00
a5f2f80bed
MCOL-392 Fix case
2018-04-30 10:41:52 +01:00
fc05a9c6c2
MCOL-392 Fix greatest() and least() for time
2018-04-30 09:42:41 +01:00
957dc44615
MCOL-392 Function fixes
...
Fixes most of the functions in funcexp so that time and datetime's
microseconds are handled correctly
2018-04-30 09:42:41 +01:00
dba04e8b72
MCOL-392 Fix cpimport and >8bit positive hour
2018-04-30 09:42:41 +01:00
edb2e2f36d
MCOL-392 Fix negative time handling
2018-04-30 09:42:41 +01:00
3c1ebd8b94
MCOL-392 Add initial TIME datatype support
2018-04-30 09:42:41 +01:00
b58122589b
Merge branch 'develop-1.1' into dev-merge-up-20180430
2018-04-30 08:51:58 +01:00
0c6dc5e15c
MCOL-1341 Fix CASE handling with 10.2.14
...
MariaDB Server 10.2.14 changed the order that CASE items are processed.
This broke the engine's CASE handling. This patch uses the new order
instead since this is what will be used in 10.2 and 10.3 going forward.
2018-04-16 19:21:28 +01:00
280dcb44bf
Merge branch 'develop-1.1' into dev-merge-up-20180409
2018-04-09 19:15:18 +01:00
73b1ac68fa
MCOL-1196 Error when using OR in case THEN portion
...
In ha_calpont_execplan, Allow OR to be parsed; in searched_case parsing, reverse the order of processing arguments so that ptWorkStack.pop() is executed in the same order as the arguments being processed.
In func_case, modify to pass left and right to getBoolVal, if they exist.
2018-03-27 12:43:43 -05:00
21d8f04a65
Merge branch 'develop-1.1' into 1.1-mergeup-20180224
2018-02-24 11:07:24 -05:00
30b4edb0cd
MCOL-1178 Add bool processing to CASE
2018-02-02 15:30:12 -06:00
59d0a45da3
Merge branch 'develop-1.1' into 1.1-merge-up
2017-12-12 20:26:00 +00:00
37f673d121
Merge branch 'develop-1.0' into 1.0-merge-up
2017-11-30 15:09:11 +00:00
3d5bd3809c
MCOL-444 Truncate UTF8 correctly
...
cpimport would truncate UTF8 data half way through a character which
would cause problems for functions using that data. This patch
calculates the correct truncation point when inserting the data.
2017-11-29 10:43:57 +00:00
01446d1e22
Reformat all code to coding standard
2017-10-26 17:18:17 +01:00
c132f1b9ed
MCOL-973 remove reference to TEXT in the 1.0 code
2017-10-24 17:39:01 -05:00
3b4da1999d
MCOL-973 Fix DOUBLE typecast crash
...
DOUBLE typecast was not supported and the failure detection caused a
crash.
This patch adds support for DOUBLE typecast and fixes the crash caused
when a non-supported function is detected as part of an arithmatic.
2017-10-20 12:42:40 +03:00
5911e677fa
MCOL-973 Fix DOUBLE typecast crash
...
DOUBLE typecast was not supported and the failure detection caused a
crash.
This patch adds support for DOUBLE typecast and fixes the crash caused
when a non-supported function is detected as part of an arithmatic.
2017-10-20 12:38:11 +03:00
c10130d1b8
MCOL-898 In func_if, handle isNull better
2017-10-06 13:37:57 -05:00
07d68aa8b1
MCOL-898 In func_if, handle isNull better
2017-10-06 13:36:28 -05:00
3330495a2e
MCOL-777 Cleanup source
...
Clean out autotools and some other things from the source tree.
2017-08-07 15:59:56 +01:00
bc2a4e7795
MCOL-523 Add UDAF and UDAnF SDK
2017-08-02 11:22:07 -05:00
ed5f51b593
MCOL-719 Add date/datetime to func_least/greatest
...
Support was missing and int casting caused unexpected results
2017-05-17 10:37:29 +01:00
21fe9e8faf
MCOL-719 Add date/datetime to func_least/greatest
...
Support was missing and int casting caused unexpected results
2017-05-17 10:35:50 +01:00
b371141202
MCOL-696 REVERSE reversing too much
2017-05-02 17:02:19 -05:00
a3c4503bc9
MCOL-597 stabilization
2017-04-21 09:47:56 -05:00
28fe2c0b70
MCOL-664 Add function support for TEXT
...
For the initial BLOB/TEXT pull request we put them in the same bucket as
VARBINARY, forcing many functions to be disabled. This patch enables the
same TEXT function support as VARCHAR.
2017-04-15 07:22:05 +02:00
e9db44424c
MCOL-642 Separate TEXT from BLOB
...
* TEXT and BLOB now have separate identifiers internally
* TEXT columns are identified as such in system catalog
* cpimport only requires hex input for BLOB, not TEXT
2017-03-27 21:36:27 +01:00
093aa377e5
MCOL-267 multi-block support for PrimProc and bulk
...
* Adds multi-block bulk write support
* Adds PrimProc multi-block read support
* Allows the functions length() and hex() to work with BLOB columns
2017-03-20 18:32:24 +00:00
0df1a5189f
MCOL-389 Add int/string handling for mod()
...
Func_mod uses double instead of int for char casting. This patch adds int
handling and uses it where appropriate.
2016-12-19 15:06:04 +00:00
e090917ca0
MCOL-471 Fix GCC 6.3 support
...
isnan requires std:: namespace
2016-12-16 10:07:32 +00:00
d94c9f1e4e
merge mcol-251 into develop
2016-10-11 15:27:20 -05:00
ed3bc28171
added copyright headers
2016-10-11 10:02:01 -05:00
e3edadc9c9
Merge pull request #37 from mariadb-corporation/MCOL-98
...
MCOL-98
2016-10-11 09:37:14 +00:00
e9ae596dab
MCOL-98: Div actually returns Null and does not throw and error. Removed unneeded includes.
2016-10-11 02:20:46 -05:00
897d8d3f3d
change snmp to alarm
2016-10-10 17:46:24 -05:00
d0e9cde782
MCOL-98: Added error message for functions returning out of range values.
2016-10-10 16:52:47 -05:00
23b195a438
Merge pull request #34 from mariadb-corporation/MCOL-347
...
MCOL-347 Fix NULLIF() for DATETIME with DATE
2016-10-04 15:23:06 -05:00