Andrew Hutchings
70b3aa3159
Merge branch 'develop-1.2' into develop-merge-up-20190924-2
2019-09-24 14:17:57 +01:00
Gagan Goel
c766620d22
Add support for DateTime data type in ROUND()
2019-09-06 21:49:47 -04:00
Andrew Hutchings
3fef0f21d3
Remove vpj files
...
They shouldn't be here
2019-09-05 17:38:03 +01:00
Andrew Hutchings
b3ef33173d
Merge pull request #809 from mariadb-corporation/MCOL-174
...
Mcol 174
2019-08-27 13:58:50 +01:00
David Hall
881410d397
MCOL-174 fix compile errors
2019-08-22 16:39:02 -05:00
David Hall
418ceb73dc
Merge branch 'develop-1.2' into MCOL-174
2019-08-22 16:37:50 -05:00
Gagan Goel
f5af10a0c4
1. For BETWEEN/IN functions in the SELECT clause, build a function column
...
2. CASE function should return false when it evaluates to NULL (e.g. due to absense of ELSE clause)
3. Set the operation type of IN function to varchar if all parameters are char/varchar/text
2019-08-18 21:23:41 -04:00
David Hall
fd373dfbfb
MCOL-3419 Get rid of std::locale::global() from MCOL-1559.
2019-08-13 15:20:28 -05:00
Roman Nozdrin
b1bc995420
Merge branch 'develop' into remove-infinidb
2019-08-13 12:32:01 +03:00
Roman Nozdrin
6cdca1330b
Merge pull request #808 from mariadb-corporation/develop-merge-up-20190729
...
Merge develop-1.2 into develop
2019-08-13 11:55:22 +03:00
Andrew Hutchings
9d83b49fca
MCOL-104 First pass of InfiniDB rename in code
2019-08-12 09:41:28 +01:00
Patrick LeBlanc
a09a9d5d0f
Mass substitution 'Corporaton' -> 'Corporation'
2019-08-07 14:43:25 -05:00
David Hall
e768a6c5ce
MCOL-179 Don't round before divide for DIV. Mimic InnoDB behavior.
2019-07-31 15:03:12 -05:00
David Hall
81e745256b
MCOL-174 Replace custom helpers::power() with standard pow(). helpers::power() breaks with #dec > 9
2019-07-31 14:49:31 -05:00
David Hall
765d1d38d4
MCOL-174 Handle quoted numerics
2019-07-31 13:58:50 -05:00
David Hall
5266d7dc61
MCOL-1559 don't use facet compare if no trailing whitspcae
2019-07-30 15:46:49 -05:00
Andrew Hutchings
811909aa72
Merge branch 'develop-1.2' into develop-merge-up-20190729
2019-07-29 12:19:26 +01:00
David Hall
78eb20ef4e
MCOL-1559 remove the #define POSIX_REGEX and thus the use of regexec. Fix up the code changing #ifdef _MSC_VER to #ifdef POSIX_REGEX, where it applies to regexec.
2019-07-24 12:59:59 -05:00
David Hall
474039b6cf
MCOL-1559 trim strings before compare on equal operator
2019-06-27 10:18:10 -05:00
David Hall
567de10204
Merge branch 'develop-1.2' into MCOL-1559
...
Conflicts:
dbcon/execplan/predicateoperator.h
2019-06-24 17:08:33 -05:00
Andrew Hutchings
1db56546ee
TIMESTAMP namespace fixes
...
Namespace issues in the TIMESTAMP code caused compiling to break. This
patch fixes that.
2019-06-12 15:05:20 +01:00
Andrew Hutchings
0983c1becf
MCOL-2230 Fix TIMEDIFF() handling
...
TIMEDIFF would not compare datetime with string correctly, causing a
NULL saturation.
2019-06-10 16:46:24 +01:00
Andrew Hutchings
5e4f1b9933
Merge branch 'develop' into MCOL-265
2019-06-10 13:58:03 +01:00
David Hall
57152cf881
MCOL-1559 experimental
2019-05-23 10:42:25 -05:00
Andrew Hutchings
020b211bb7
Merge branch 'develop-1.2' into develop-merge-up-20190514
2019-05-14 13:58:33 +01:00
David Mott
f0dd02499a
Remove unneeded include
2019-04-29 05:19:11 -05:00
Roman Nozdrin
9dc33c4e82
Another try to cope with warnings under gcc 8.2.
2019-04-29 11:05:03 +03:00
Patrick LeBlanc
cbbf267e88
MCOL-537, cleanup compiler warnings. Checkpointing a bunch of fixes.
...
Work in progress...
2019-04-29 10:56:48 +03:00
David Mott
4b9d046c6e
Fully resolve potentially ambiguous symbols by removing using namespace statements from headers which have a cascading effect. This causes potential behavior changes when switching to c++11 since symbols can be exported from std and boost while both have been imported into the global namespace.
2019-04-29 01:21:15 -05:00
David Mott
e65f80f493
delete visual c++ project files. cmake can generate these if needed
2019-04-25 23:35:03 -05:00
Gagan Goel
e89d1ac3cf
MCOL-265 Add support for TIMESTAMP data type
2019-04-23 00:00:09 -04:00
Roman Nozdrin
9ff348b97f
MCOL-2233 substring_index() now returns correct value when
...
index value is negative.
The problem caused by unsigned type used to store negative
index value.
2019-03-13 13:02:17 +03:00
David Hall
c3f8148fff
MCOL-2182 Change in MariaDB 10.3 allows for only 2 parameters to lpad and rpad
2019-03-08 15:14:42 -06:00
David Hall
3f2c753947
MCOL-1822-c final checkin
2019-03-05 09:33:39 -06:00
David Hall
a2aa4b8479
MCOL-1822 Intermediate checkin. DISTINCT not working.
2019-02-25 14:54:46 -06:00
David Hall
c5b9ae11e5
MCOL-1822 add LONG DOUBLE support
2019-01-29 09:55:43 -06:00
Gagan Goel
6deb5e1bfd
MCOL-2057 Fix truncate(x,d) when d < 0 for unsigned int data types
...
For unsigned data types in the int family (tinyint, smallint, int, bigint),
truncate(x, d) now properly applies zeros when d < 0.
2019-01-08 20:15:04 -05:00
Andrew Hutchings
1834b64de8
Merge branch 'develop-1.1' into 1.1-merge-up-2018-11-23
2018-11-23 11:45:17 +00:00
Andrew Hutchings
b1d5f54abe
MCOL-1868 Fix error in unused code
...
There was a a bad line in some code that we don't currently compile. This
patch fixes that code in case we use it in the future.
2018-11-14 14:29:58 +00:00
Andrew Hutchings
85121060fb
Merge branch 'develop-1.1' into 1.1-merge-up-2018-11-08
2018-11-08 18:39:44 +00:00
Andrew Hutchings
65287a0613
MCOL-1826 Fix race in FLOAT/DOUBLE to string
...
In the FLOAT/DOUBLE to string conversions a class global string was used
to store the result. Unfortunately it is possible for an instance of
this class to be used by multiple threads of PrimProc simultaneously.
This would cause a race and data corruption or more likely a crash.
This fix passes a string object from the caller to use instead.
2018-10-22 17:56:49 +01:00
David.Hall
ca7cb9a7b1
Merge pull request #581 from mariadb-corporation/MCOL-1433b
...
MCOL-1433 Fix TIME for MAKEDATE/TIMEDIFF
2018-10-08 11:56:26 -05:00
Andrew Hutchings
6a72b28bab
MCOL-1775 Fix addtime/subtime for WHERE
...
MariaDB server renamed addtime/subtime so we need to use the new names
for these functions.
2018-10-06 11:27:51 +01:00
Andrew Hutchings
a127f84793
MCOL-1433 Fix TIME for MAKEDATE/TIMEDIFF
...
Fix saturation behaviour for TIME with MAKEDATE() and TIMEDIFF()
2018-10-04 16:53:14 +01:00
David.Hall
23e99db0ea
Merge pull request #545 from mariadb-corporation/1.1-merge-up-20180817
...
Merge develop-1.1 into develop
2018-08-20 14:07:35 -05:00
Andrew Hutchings
03da6df473
Merge branch 'develop-1.1' into 1.1-merge-up-20180817
2018-08-17 16:17:13 +01:00
Andrew Hutchings
580a3ec123
MCOL-1647 Fix TIME regressions
...
Fixes the following:
* Read past buffer end in intToDatetime / intToTime
* Allow intToTime to convert datetime
* Allow intToTime to convert shortened time values
* Allow stringToTime to convert datetime and int time values
* Fix saturation / bad values in intToTime and stringToTime
* Fix TIME return in STR_TO_DATE()
* Fix NULL return on type inequality for TIMEDIFF()
* Fix zero day calculation error in ADDTIME()/SUBTIME()
* Fix DATETIME to int calculation error in aggregate bit operations
* Make the new harderning flags optional with -DSECURITY_HARDENED_NEW
2018-08-17 07:55:51 +01:00
Andrew Hutchings
443a2867c4
MCOL-1385 Initial 10.3 support
2018-08-02 14:55:01 +01:00
David Hall
db4279dac7
MCOL-1535 caseOperationType adjusted for new simple case order
2018-07-23 17:32:38 -05:00
Andrew Hutchings
fb8aab959d
MCOL-1433 Fix some functions for TIME
...
Fixes the following:
* CAST() (as DATE/DATETIME)
* DATE()
* DATE_FORMAT()
* MAKEDATE()
* NULLIF()
* TIMEDIFF()
* TO_DAYS() / DATEDIFF()
2018-07-12 15:13:43 +01:00