1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00
Commit Graph

295 Commits

Author SHA1 Message Date
881410d397 MCOL-174 fix compile errors 2019-08-22 16:39:02 -05:00
418ceb73dc Merge branch 'develop-1.2' into MCOL-174 2019-08-22 16:37:50 -05:00
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
fd373dfbfb MCOL-3419 Get rid of std::locale::global() from MCOL-1559. 2019-08-13 15:20:28 -05:00
b1bc995420 Merge branch 'develop' into remove-infinidb 2019-08-13 12:32:01 +03:00
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
9d83b49fca MCOL-104 First pass of InfiniDB rename in code 2019-08-12 09:41:28 +01:00
a09a9d5d0f Mass substitution 'Corporaton' -> 'Corporation' 2019-08-07 14:43:25 -05:00
e768a6c5ce MCOL-179 Don't round before divide for DIV. Mimic InnoDB behavior. 2019-07-31 15:03:12 -05:00
81e745256b MCOL-174 Replace custom helpers::power() with standard pow(). helpers::power() breaks with #dec > 9 2019-07-31 14:49:31 -05:00
765d1d38d4 MCOL-174 Handle quoted numerics 2019-07-31 13:58:50 -05:00
5266d7dc61 MCOL-1559 don't use facet compare if no trailing whitspcae 2019-07-30 15:46:49 -05:00
811909aa72 Merge branch 'develop-1.2' into develop-merge-up-20190729 2019-07-29 12:19:26 +01:00
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
474039b6cf MCOL-1559 trim strings before compare on equal operator 2019-06-27 10:18:10 -05:00
567de10204 Merge branch 'develop-1.2' into MCOL-1559
Conflicts:
	dbcon/execplan/predicateoperator.h
2019-06-24 17:08:33 -05:00
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
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
5e4f1b9933 Merge branch 'develop' into MCOL-265 2019-06-10 13:58:03 +01:00
57152cf881 MCOL-1559 experimental 2019-05-23 10:42:25 -05:00
020b211bb7 Merge branch 'develop-1.2' into develop-merge-up-20190514 2019-05-14 13:58:33 +01:00
f0dd02499a Remove unneeded include 2019-04-29 05:19:11 -05:00
9dc33c4e82 Another try to cope with warnings under gcc 8.2. 2019-04-29 11:05:03 +03:00
cbbf267e88 MCOL-537, cleanup compiler warnings. Checkpointing a bunch of fixes.
Work in progress...
2019-04-29 10:56:48 +03:00
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
e65f80f493 delete visual c++ project files. cmake can generate these if needed 2019-04-25 23:35:03 -05:00
e89d1ac3cf MCOL-265 Add support for TIMESTAMP data type 2019-04-23 00:00:09 -04:00
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
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
3f2c753947 MCOL-1822-c final checkin 2019-03-05 09:33:39 -06:00
a2aa4b8479 MCOL-1822 Intermediate checkin. DISTINCT not working. 2019-02-25 14:54:46 -06:00
c5b9ae11e5 MCOL-1822 add LONG DOUBLE support 2019-01-29 09:55:43 -06:00
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
1834b64de8 Merge branch 'develop-1.1' into 1.1-merge-up-2018-11-23 2018-11-23 11:45:17 +00:00
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
85121060fb Merge branch 'develop-1.1' into 1.1-merge-up-2018-11-08 2018-11-08 18:39:44 +00:00
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
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
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
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
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
03da6df473 Merge branch 'develop-1.1' into 1.1-merge-up-20180817 2018-08-17 16:17:13 +01:00
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
443a2867c4 MCOL-1385 Initial 10.3 support 2018-08-02 14:55:01 +01:00
db4279dac7 MCOL-1535 caseOperationType adjusted for new simple case order 2018-07-23 17:32:38 -05:00
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
8c90419852 Fix merge and coding style issues 2018-06-22 15:31:31 +01:00
1caa98ff46 Merge pull request #494 from mariadb-corporation/MCOL-1433
MCOL-1433 Fix several functions for TIME handling
2018-06-11 10:20:49 -05:00
d9e6ba90ad MCOL-1433 Fix several functions for TIME handling
This fixes hex() so that it outputs the hex of the ASCII for the time
data to make it aligned with MariaDB. It also fixes the following
functions so that they use NOW() as a DATETIME with the input TIME added
to it:

* weekday()
* yearweek()
* monthname()
* last_day()
* year()
* weekofyear()
* week()
* to_days()
* quarter()
* month()
* dayofyear()
* dayofweek()
* dayofmonth()
* day()
* date()
2018-06-08 14:58:08 +01:00
53b29a03ad Merge pull request #492 from mariadb-corporation/MCOL-392-fixes
Fix a bunch of issues around TIME data type
2018-06-07 09:18:56 -05:00