summaryrefslogtreecommitdiff
path: root/mysql-test/t/loaddata.test
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.1 into 10.2Marko Mäkelä2019-03-041-0/+45
|\
| * MDEV-15950: LOAD DATA INTO compex_view crashedVarun Gupta2019-01-301-0/+31
| | | | | | | | | | For multi-table views with LOAD, updates are not allowed, so we should just throw an error.
| * MDEV-15744: Assertion `derived->table' failed in mysql_derived_merge_for_insertVarun Gupta2019-01-291-0/+14
| | | | | | | | | | For singe-table views, we need to find the bottom most base table in the embedded views and then update that table
* | Backporting MDEV-15597 Add class Load_data_outvar and avoid using ↵Alexander Barkov2019-02-231-0/+16
| | | | | | | | | | | | Item::STRING_ITEM for Item_user_var_as_out_param detection This is a part of "MDEV-18045 Backporting the MDEV-15497 changes to 10.2 branch"
* | Backporting MDEV-15497 Wrong empty value in a GEOMETRY column on LOAD DATAAlexander Barkov2019-02-231-0/+24
| | | | | | | | This is a part of "MDEV-18045 Backporting the MDEV-15497 changes to 10.2 branch"
* | Merge branch '10.1' into 10.2Sergei Golubchik2017-05-091-1/+1
|\ \ | |/ | | | | | | Revert commit db0917f68f, because the fix for MDEV-12696 is coming from 5.5 and 10.1 in this merge.
| * Merge remote-tracking branch 'mysql/5.5' into 5.5mariadb-5.5.55Sergei Golubchik2017-04-111-1/+1
| |\
| | * Bug #24595937: INCORRECT BEHAVIOR WHEN LOADING DATA TO VIEWSreeharsha Ramanavarapu2016-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: ------ While using the LOAD statement to insert data into an updateable view, the check to verify whether a column is actually updatable is missing. Solution for 5.5 and 5.6: ------------------------- For a view whose column-list in specified in the LOAD command, this check is not performed. This fix adds the check. This is a partial backport of Bug#21097485. Solution for 5.7 and trunk: --------------------------- For a view whose column-list is specified in the LOAD command, this check is already performed. This fix adds the same check when no column-list is specified.
* | | Merge branch 'bb-10.2-serg-merge' into 10.2Sergei Golubchik2017-02-111-22/+16
|\ \ \ | |/ /
| * | Adding LOAD DATA tests for MDEV-11079 and MDEV-11631Alexander Barkov2017-01-091-0/+18
| | | | | | | | | | | | | | | | | | | | | c3cf7f47f0f4a1ec314001aaf0c3d9c1c1f62097 reverted the patch for BUG#24487120. After merging the reverting patch from MySQL to MariaDB the problems described in MDEV-11079 and MDEV-11631 disappeared. Adding test cases only.
| * | Merge branch 'mysql/5.5' into 5.5Sergei Golubchik2016-12-221-24/+1
| |\ \ | | |/
| | * BUG#24487120 - SLAVE'S SLAVE_SQL_RUNNING IS STOPPED DURINGThayumanavar S2016-10-281-24/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LOAD DATA AT MASTER. Revert "BUG#23080148 - BACKPORT BUG 14653594 AND BUG 20683959 TO" This reverts commit 1d31f5b3090d129382b50b95512f2f79305715a1. The commit causes replication incompatibility between minor revisions and based on discussion with Srinivasarao, the patch is reverted.
* | | MDEV-7635: Update tests to adapt to the new default sql_modeNirbhay Choubey2017-02-101-6/+6
| | |
* | | Merge branch '10.1' into 10.2Sergei Golubchik2016-09-091-1/+25
|\ \ \ | |/ /
| * | Merge branch 'mysql/5.5' into 5.5Sergei Golubchik2016-08-031-1/+24
| |\ \ |/ / / | | _ | | without a fix for Bug#12818255 (MDEV-6581)
| * BUG#23080148 - BACKPORT BUG 14653594 AND BUG 20683959 TOThayumanavar S2016-06-201-1/+24
| | | | | | | | | | | | | | | | | | MYSQL-5.5 The bug asks for a backport of bug#1463594 and bug#20682959. This is required because of the fact that if replication is enabled, master transaction can commit whereas slave can't commit due to not exact 'enviroment'. This manifestation is seen in bug#22024200.
| * Bug#11759519 - INFINITE HANG WITH 100% CPU USAGE WITH LOAD DATAPraveenkumar Hulakund2014-03-191-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LOCAL AND IMPORT ERRORS Description: ----------- This bug happens due to the fact that current algorithm is designed that in the case of LOCAL load of data, in case of the error, the remaining part of the file is read in order to return the proper error message to the client side. But, the problem with current implementation is that data stream for the client side is cleared only in the case where line delimiters exist, which is not a case with, for example fixed width fields. Fix: ---- Ported patch provided by Sinisa Milivojevic n bug report for this issue to 5.5+ versions. As part of this patch code is changed to clear the data stream by calling new member function "READ_INFO::skip_data_till_eof".
| * Description:Akhila Maddukuri2012-09-261-29/+33
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------- After compiling from source, during make test I got the following error: test main.loaddata failed with error CURRENT_TEST: main.loaddata mysqltest: At line 592: query 'LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2 (@b) SET a=REVERSE(@b)' failed: 1115: Unknown character set: 'ucs2' I noticed other tests are skipped because of no ucs2 main.mix2_myisam_ucs2 [ skipped ] Test requires:' have_ucs2' Should main.loaddata be skipped if there is no ucs2 How To Repeat: ------------- Run make test on compiled source that doesn't have ucs2 Suggested fix: ------------- the failing piece of the test should be moved from mysql-test/t/loaddata.test to mysql-test/t/ctype_ucs.test.
| | * Description:Akhila Maddukuri2012-09-261-29/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------- After compiling from source, during make test I got the following error: test main.loaddata failed with error CURRENT_TEST: main.loaddata mysqltest: At line 592: query 'LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2 (@b) SET a=REVERSE(@b)' failed: 1115: Unknown character set: 'ucs2' I noticed other tests are skipped because of no ucs2 main.mix2_myisam_ucs2 [ skipped ] Test requires:' have_ucs2' Should main.loaddata be skipped if there is no ucs2 How To Repeat: ------------- Run make test on compiled source that doesn't have ucs2 Suggested fix: ------------- the failing piece of the test should be moved from mysql-test/t/loaddata.test to mysql-test/t/ctype_ucs.test.
| * | merge from 5.1Guilhem Bichot2011-04-261-0/+15
| |\ \ | | |/
| | * Fix for Bug#11765141 - "58072: LOAD DATA INFILE: LEAKS IO CACHE MEMORY WHEN ↵Guilhem Bichot2011-04-071-0/+15
| | | | | | | | | | | | ERROR OCCURS"
| * | 5.1 -> 5.5 mergeSergey Glukhov2011-04-151-0/+13
| |\ \ | | |/
| | * Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS ↵Sergey Glukhov2011-04-151-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AND WRITES WITH U Some multibyte sequences could be considered by my_mbcharlen() functions as multibyte character but more exact my_ismbchar() does not think so. In such a case this multibyte sequences is pushed into 'stack' buffer which is too small to accommodate the sequence. The fix is to allocate stack buffer in compliance with max character length.
| * | mergeGeorgi Kodinov2010-07-141-0/+32
| |\ \ | | |/
| | * Bug #51876: crash/memory underrun when loading data with ucs2Georgi Kodinov2010-07-141-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and reverse() function 3 problems fixed : 1. The reported problem : caused by incorrect parsing of the file as ucs data resulting in wrong length of the parsed string. Fixed by truncating the invalid trailing bytes (non-complete multibyte characters) when reading from the file 2. LOAD DATA when reading from a proper UCS2 file wasn't recognizing the new line characters. Fixed by first looking if a byte is a new line (or any other special) character before reading it as a part of a multibyte character. 3. When using user variables to hold the column data in LOAD DATA the character set of the user variable was set incorrectly to the database charset. Fixed by setting it to the charset specified by LOAD DATA (if any).
| * | mergeGeorgi Kodinov2010-06-091-0/+20
| |\ \ | | |/
| | * MergeGeorgi Kodinov2010-06-091-0/+20
| | |\
| | | * Bug #52512: Assertion `! is_set()' in Diagnostics_area::set_ok_status Georgi Kodinov2010-04-071-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on LOAD DATA Two problems : 1. LOAD DATA was not checking for SQL errors and was sending an OK packet even when there were errors reported already. Fixed to check for SQL errors in addition to the error conditions already detected. 2. There was an over-ambitious assert() on the server to check if the protocol is always followed by the client. This can cause crashes on debug servers by clients not completing the protocol exchange for some reason (e.g. --send command in mysqltest). Fixed by keeping the assert only on client side, since the server always completes the protocol exchange.
| * | | A follow-up for Bug#50373: remove a commented-out part of the loaddata.test.Alexander Nozdrin2010-05-121-10/+0
| |/ /
| * | Bug#50373 --secure-file-priv=""Kristofer Pettersson2010-05-031-4/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Iterative patch improvement. Previously committed patch caused wrong result on Windows. The previous patch also broke secure_file_priv for symlinks since not all file paths which must be compared against this variable are normalized using the same norm. The server variable opt_secure_file_priv wasn't normalized properly and caused the operations LOAD DATA INFILE .. INTO TABLE .. and SELECT load_file(..) to do different interpretations of the --secure-file-priv option. The patch moves code to the server initialization routines so that the path always is normalized once and only once. It was also intended that setting the option to an empty string should be equal to lifting all previously set restrictions. This is also fixed by this patch.
| * mergeGeorgi Kodinov2010-03-301-8/+7
| |\
| | * Bug #51893: crash with certain characters given to load_file Georgi Kodinov2010-03-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | function on windows When making sure that the directory path ends up with a slash/backslash we need to check for the correct length of the buffer and trim at the appropriate location so we don't write past the end of the buffer.
| * | Bug #51893: crash with certain characters given to load_file Georgi Kodinov2010-03-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | function on windows When making sure that the directory path ends up with a slash/backslash we need to check for the correct length of the buffer and trim at the appropriate location so we don't write past the end of the buffer.
| * | Bug #51850: crash/memory overlap when using load data infile and setGeorgi Kodinov2010-03-231-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | col equal to itself! There's no need to copy the value of a field into itself. While generally harmless (except for some performance penalties) it may be dangerous when the copy code doesn't expect this. Fixed by checking if the source field is the same as the destination field before copying the data. Note that we must preserve the order of assignment of the null flags (hence the null_value assignment addition).
| * | Merging 5.1 main into 5.1-rplMats Kindahl2008-10-231-1/+187
| |\ \
| | * \ manual mergeTatiana A. Nurnberg2008-09-181-5/+7
| | |\ \ | | | |/
| | | * Bug#37114: sql_mode NO_BACKSLASH_ESCAPES does not work properly with LOAD ↵Tatiana A. Nurnberg2008-09-181-4/+5
| | | | | | | | | | | | | | | | | | | | DATA Bug#37114: sql_mode NO_BACKSLASH_ESCAPES does not work properly with LOAD DATA INFILE tweaked test to make embedded server happy
| | * | auto-mergeTatiana A. Nurnberg2008-09-171-1/+185
| | |\ \ | | | |/
| | | * Bug#37114: sql_mode NO_BACKSLASH_ESCAPES does not work properly with LOAD ↵Tatiana A. Nurnberg2008-09-171-1/+180
| | | | | | | | | | | | | | | | | | | | | | | | DATA INFILE NO_BACKSLASH_ESCAPES was not heeded in LOAD DATA INFILE and SELECT INTO OUTFILE. It is now.
| * | | BUG#37858: loaddata,rpl_slave_skip,rpl_innodb_mixed_dml fail if datafile not ↵Sven Sandberg2008-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | world-readable Problem 1: main.loaddata tried to trigger an error caused by reading files outside the vardir, by reading itself. However, if loaddata.test is not world-readable (e.g., umask=0077), then another error is triggered. Fix 1: allow the other error too. Problem 2: rpl_slave_skip and rpl_innodb_mixed_dml tried to copy a file from mysql-test/suite/rpl/data to mysql-test/var and then read it. That failed too if umask=0077, since the file would not become world-readable. Fix 2: move the files from mysql-test/suite/rpl/data to mysql-test/std_data and update tests accordingly. Remove the directory mysql-test/suite/rpl/data.
| * | | Fix paths in test and result filesmsvensson@pilot.mysql.com2008-04-031-4/+4
| | | |
| * | | Merge pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-rplmsvensson@pilot.mysql.com2008-04-031-0/+82
| |\ \ \ | | |/ / | | | | | | | | into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-mtr
| | * | Merge quad.opbmk:/mnt/raid/alik/MySQL/devel/5.0-btanozdrin/alik@quad.opbmk2008-03-281-0/+82
| | |\ \ | | | |/ | | | | | | | | into quad.opbmk:/mnt/raid/alik/MySQL/devel/5.1-bt-merged
| | | * Fix tree:anozdrin/alik@quad.opbmk2008-03-281-4/+4
| | | | | | | | | | | | | | | | | | | | 1. Use 'dat' extension, because it is handled in Makefile.am; 2. Fix typo: the bug id is 35469, not 35649.
| | | * Fix for Bug#35469: server crash with LOAD DATA INFILE to a VIEW.anozdrin/alik@quad.opbmk2008-03-281-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that LOAD DATA code (sql_load.cc) didn't take into account that there may be items, representing references to other columns. This is a usual case in views. The crash happened because Item_direct_view_ref was casted to Item_user_var_as_out_param, which is not a base class. The fix is to 1) Handle references properly; 2) Ensure that an item is treated as a user variable only when it is a user variable indeed; 3) Report an error if LOAD DATA is used to load data into non-updatable column.
| | | * Remove unportable constructs in loaddata.testmsvensson@pilot.(none)2007-08-281-12/+10
| | | |
| * | | WL#4189msvensson@pilot.mysql.com2007-12-121-17/+18
| |/ / | | | | | | | | | | | | | | | | | | - dynamic configuration support - safe process - cleanups - create new suite for fedarated
| * | Remove unportable construct in loaddata.testmsvensson@pilot.(none)2007-08-281-1/+1
| | |
| * | Merge pilot.(none):/data/msvensson/mysql/mysql-5.0-maintmsvensson@pilot.(none)2007-08-281-12/+10
| |\ \ | | | | | | | | | | | | into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
| | * | Remove unportable constructs in loaddata.testmsvensson@pilot.(none)2007-08-281-12/+10
| | |/