summaryrefslogtreecommitdiff
path: root/sql/item.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.0joerg@mysql.com2005-05-261-0/+1
|\ | | | | | | into mysql.com:/M50/mysql-5.0
| * Manual merge.joerg@mysql.com2005-05-261-0/+1
| |\
| | * Added a test case for Bug#8009.jani@ua141d10.elisa.omakaista.fi2005-05-241-0/+1
| | |
* | | Move function from header file to make it easier to debugmonty@mysql.com2005-05-261-0/+16
|/ /
* | Manual merge of patch fixing several trigger related bugs with main tree.dlenev@mysql.com2005-05-241-21/+22
|\ \
| * | Fix for bugs:dlenev@brandersnatch.localdomain2005-05-241-21/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #5860 "Multi-table UPDATE does not activate update triggers" #6812 "Triggers are not activated for INSERT ... SELECT" #8755 "Trigger is not activated by LOAD DATA". This patch also implements proper handling of triggers for special forms of insert like REPLACE or INSERT ... ON DUPLICATE KEY UPDATE. Also now we don't call after trigger in case when we have failed to inserted/update or delete row. Trigger failure should stop statement execution. I have not properly tested handling of errors which happen inside of triggers in this patch, since it is simplier to do this once we will be able to access tables from triggers.
* | | Fixed on BUG#6048: Stored procedure causes operating system rebootpem@mysql.comhem.se2005-05-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Memory leak in locally evalutated expressions during SP execution fixed by reusing allocated item slots when possible. Note: No test case added, since the test is a stress test that tries to make the machine to run out of memory. Second attempt, now tested with debug build, valgrind build, max (optimized) build, with and without --debug, --vagrind and --ps-protocol. Errors in trigger and view test with --debug in debug build where present before this patch, and likewise for valgrind warnings for view test in valgrind build with --ps-protocol.
* | | Revert fix for Bug #6048: it introduced new problems.jimw@mysql.com2005-05-181-15/+4
| | |
* | | Resolve merge from 4.1jimw@mysql.com2005-05-181-1/+1
|\ \ \ | | |/ | |/|
| * | relaxed DBUG_ASSERT in Item_int_with_ref::new_item() to "any constant" ↵bell@book.sanja.is.com.ua2005-05-161-1/+1
| | | | | | | | | | | | (BUG#10020)
* | | Fixed BUG#6048: Stored procedure causes operating system reboot.pem@mysql.comhem.se2005-05-181-4/+15
| | | | | | | | | | | | | | | | | | | | | Memory leak in locally evalutated expressions during SP execution fixed by reusing allocated item slots when possible. Note: No test case added, since the test is a stress test that tries to make the machine to run out of memory.
* | | mergebell@book.sanja.is.com.ua2005-05-091-0/+7
|\ \ \ | |_|/ |/| |
| * | Item::fix_field need correct pointer on item reference to chnge it if itis ↵bell@book.sanja.is.com.ua2005-05-091-0/+7
| | | | | | | | | | | | | | | | | | need, so support of correct item address added to SP commands (BUG#5963) some optimisation of IF/NOT IF ptomised to Pem
* | | Mergejimw@mysql.com2005-05-071-1/+1
|\ \ \ | | |/ | |/|
| * | fix for bug #4082: Integer lengths cause truncation with DISTINCT CONCAT and ↵ramil@ram-book.(none)2005-05-061-1/+1
| | | | | | | | | | | | InnoDB
* | | mergemonty@mishka.local2005-05-061-2/+2
|\ \ \ | |_|/ |/| |
| * | Fixes while reviewing new codemonty@mishka.local2005-05-061-2/+2
| | | | | | | | | | | | | | | Added option --count to mysqlshow (to show number of rows) Fixed possible core dump in information schema
* | | Mergeholyfoot@mysql.com2005-05-051-35/+41
|\ \ \
| * | | A lot of fixes to Precision mathholyfoot@hf-ibm.(none)2005-05-051-35/+41
| | | | | | | | | | | | | | | | Mostly about precision/decimals of the results of the operations
* | | | Manual mergekonstantin@mysql.com2005-05-051-1/+23
|\ \ \ \ | | |_|/ | |/| |
| * | | A fix and test case for Bug#9777 " Empty set returned by Prepared Statement ↵konstantin@mysql.com2005-05-051-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | when it should return a non empty one" (see comments for the changed files for details).
* | | | Merge bk-internal.mysql.com:/home/bk/mysql-5.0konstantin@mysql.com2005-05-041-1/+67
|\ \ \ \ | | |/ / | |/| | | | | | into mysql.com:/opt/local/work/mysql-5.0-root
| * | | postreview changesbell@sanja.is.com.ua2005-04-301-2/+2
| | | |
| * | | Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0bell@sanja.is.com.ua2005-04-301-1/+67
| |\ \ \ | | |_|/ | |/| | | | | | into sanja.is.com.ua:/home/bell/mysql/bk/work-test-5.0
| | * | if outer refernce (identifier) was resolved with help of cache all ↵bell@sanja.is.com.ua2005-04-291-1/+67
| | | | | | | | | | | | | | | | | | | | | | | | subqueries and resolved item itseld have to be correctly marked as dependent (BUG#10041)
* | | | Post-merge fixes for Bug#9096 "select doesn't return all matchedkonstantin@mysql.com2005-05-041-5/+23
| | | | | | | | | | | | | | | | | | | | records if prepared statements is used" (see comments to the changed files).
* | | | Manual merge of Bug#9096konstantin@mysql.com2005-05-031-1/+114
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | A fix and test case for Bug#9096 "select doesn't return all matched konstantin@mysql.com2005-05-031-1/+113
| | | | | | | | | | | | | | | | | | | | | | | | records if prepared statements is used". This fix changes equality evaluation method of basic constants from by-name to by-value, thus effectively enabling use of parameter markers in some optimizations (constants propagation, evaluation of possible keys for query).
* | | Merge neptunus.(none):/home/msvensson/mysql/bug9714msvensson@neptunus.(none)2005-04-271-6/+6
|\ \ \ | | | | | | | | | | | | into neptunus.(none):/home/msvensson/mysql/mysql-5.0
| * | | BUG#9714 libsupc++ problemmsvensson@neptunus.(none)2005-04-271-6/+6
| | |/ | |/| | | | | | | | | | - Remove linking of libsupc++ - Move all local static variables to filescope
* | | Bug#8861acurtis@xiphis.org2005-04-211-0/+1
|/ / | | | | | | Correct previous bugfix
* | subselect.result, subselect.test:igor@rurik.mysql.com2005-04-151-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a test case for bug #9338. sql_select.cc: Fixed bug #9338. When an occurence of a field reference has to be replaced by another field reference the whole Item_field must be replaced. item.cc: Fixed bug #9338. The method Item_field::replace_equal_field_processor was replaced by Item_field::replace_equal_field. The new method is used to replace the occurences of Item_field objects. item.h: Fixed bug #9338. The virtual function replace_equal_field_processor was replaced by replace_equal_field. The latter is supposed to be used as a callback function in calls of the method transform.
* | Fixed BUG#9674: Stored Procs: Using declared vars in algebric operationpem@mysql.comhem.se2005-04-131-1/+1
| | | | | | | | causes system crash.
* | mergebar@mysql.com2005-04-111-1/+10
|\ \ | |/
| * ctype_collate.result, ctype_collate.test, union.result, union.test:bar@mysql.com2005-04-101-1/+10
| | | | | | | | | | | | | | | | fixing tests accordingly item.cc: Allow mixing non-binary collation and binary collation even if coercibility is the same. For easier 4.0 -> 4.1 migrating.
| * Merge bk-internal.mysql.com:/home/bk/mysql-4.1msvensson@neptunus.(none)2005-03-311-0/+28
| |\ | | | | | | | | | into neptunus.(none):/home/msvensson/mysql/mysql-4.1
* | \ Merge bk@192.168.21.1:/usr/home/bk/mysql-5.0hf@deer.(none)2005-04-061-6/+10
|\ \ \ | | | | | | | | | | | | into deer.(none):/home/hf/work/mysql-5.0.errmsg
| * | | Stupid error message for 'insert "aaa"' into decimal column fixedhf@deer.(none)2005-04-061-6/+10
| | | |
* | | | Mergejimw@mysql.com2005-04-051-0/+22
|\ \ \ \
| * | | | In TRADITIONAL mode, don't allow a NOT NULL field with no default be set tojimw@mysql.com2005-01-131-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | DEFAULT (with no argument) or to the field's type's default by not being listed in the list of fields being inserted. (Bug #5986)
* | | | | sql/item.ccserg@serg.mylan2005-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after merge fix sql/mysqld.cc too early for sync-binlog=1 by default :)
* | | | | Don't use -lsupc++ with gcc 3.3 and below as this gives linking problems ↵monty@mysql.com2005-04-041-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when linking staticly Fix that mysql.proc works with new VARCHAR fields Give warnings for wrong zero dates
* | | | | Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com2005-04-011-3/+57
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | into mysql.com:/home/my/mysql-5.0
| * | | | Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902)monty@mysql.com2005-04-011-3/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CAST() now produces warnings when casting a wrong INTEGER or CHAR values. This also applies to implicite string to number casts. (Bug #5912) ALTER TABLE now fails in STRICT mode if it generates warnings. Inserting a zero date in a DATE, DATETIME or TIMESTAMP column during TRADITIONAL mode now produces an error. (Bug #5933)
* | | | | Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0bell@sanja.is.com.ua2005-04-011-166/+250
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into sanja.is.com.ua:/home/bell/mysql/bk/work-union_merge-5.0
| * | | | | postmerge 4.1->5.0 fixesbell@sanja.is.com.ua2005-04-011-9/+44
| | | | | |
| * | | | | merge 4.1->5.0bell@sanja.is.com.ua2005-03-311-167/+216
| |\ \ \ \ \ | | |/ / / / | |/| | / / | | | |/ / | | |/| |
| | * | | postmerge fixesbell@sanja.is.com.ua2005-03-301-16/+22
| | | | |
| | * | | fixed union types merging and table related metadata (BUG#8824)bell@sanja.is.com.ua2005-03-231-140/+204
| | | | |
* | | | | Mergemsvensson@neptunus.(none)2005-03-301-0/+28
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| |