| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
restore it afterwards.
This allows us to use statement replication with functions and triggers
The following things are fixed with this patch:
- NOW() and automatic timestamps takes the value from the main event for functions and triggers (which allows these to replicate with statement level logging)
- No side effects for triggers or functions with auto-increment values(), last_insert_id(), rand() or found_rows()
- Triggers can't return result sets
Fixes bugs:
#12480: NOW() is not constant in a trigger
#12481: Using NOW() in a stored function breaks statement based replication
#12482: Triggers has side effects with auto_increment values
#11587: trigger causes lost connection error
|
|
|
|
| |
number of seconds (which can include microseconds). (Bug #6760)
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
prelocked mode for
its body, but lets each statement to get/release its own locks. This allows a broader set
of statements to be executed inside PROCEDUREs (but breaks replication)
This patch should fix BUG#8072, BUG#8766, BUG#9563, BUG#11126
|
|\ \
| | |
| | |
| | | |
into mysql.com:/home/jimw/my/mysql-5.0-clean
|
| |\ \
| | | |
| | | |
| | | | |
into mysql.com:/home/jimw/my/mysql-4.1-clean
|
| | | | |
|
| |\ \ \
| | | | |
| | | | |
| | | | | |
into mysql.com:/home/jimw/my/mysql-4.1-clean
|
| | | | |
| | | | |
| | | | |
| | | | | |
was used. (Bug #10724)
|
|\ \ \ \ \
| |/ / / /
| | | | /
| |_|_|/
|/| | | |
into mysql.com:/usr/home/bar/mysql-5.0
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adding test
item_sum.cc:
Adding a call for collation/charset aggregation,
to collect attributes from the arguments. The actual bug fix.
item_func.h, item_func.cc, item.h, item.cc:
- Removing collation aggrgation functions from Item_func class
in item.cc, and adding it as non-class functions in item.cc
to be able to reuse this code for group_concat.
- Adding replacement for these functions into Item_func class
as wrappers for moved functions, to minizize patch size,
|
|\ \ \
| |/ /
| | |
| | | |
into mysql.com:/home/jimw/my/mysql-5.0-clean
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | | |
into mysql.com:/media/sda1/mysql/mysql-5.0-merge
|
| | |
| | |
| | |
| | |
| | |
| | | |
of system vars at PREPARE time": implement a special Item
to handle system variables. This item substitutes itself with
a basic constant containing variable value at fix_fields.
|
|\ \ \
| | | |
| | | |
| | | | |
into mysql.com:/media/sda1/mysql/mysql-5.0-10760-new
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ETIME was returned by cond_timedwait (sic, the pre-POSIX1001b function) on
Solaris 2.6 and 2.7. pthread_cond_timedwait on Solaris returns ETIMEDOUT.
The standard requirement is that the only additional return value
of pthred_cond_timedwait compared to pthread_cond_wait is ETIMEDOUT.
Let us not bloat the application code with redundant checks,
and if we're ever to work on a platform that returns a non-standard
value, we should write a wrapper for that platform (like we do, e.g., for
Windows).
|
|\ \ \ \
| |/ / /
|/| / /
| |/ / |
into mysql.com:/opt/local/work/mysql-5.0-root
|
| |\ \
| | | |
| | | |
| | | | |
into mysql.com:/home/psergey/mysql-4.1-merge-from-build
|
| | |/
| | |
| | |
| | |
| | |
| | | |
there is no
source table present (this happens for ORDER BY after UNION)
|
|\ \ \
| |/ /
| | |
| | | |
into mysql.com:/opt/local/work/mysql-5.0-root
|
| |/
| |
| |
| | |
binary).
|
|\ \
| | |
| | |
| | | |
into mysql.com:/home/dlenev/src/mysql-5.0-bg8406
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
crash if referencing a table" and several other related bugs.
Fix for bug #11834 "Re-execution of prepared statement with dropped function
crashes server." which was spotted during work on previous bugs.
Also couple of nice cleanups:
- Replaced two separate hashes for stored routines used by statement with one.
- Now instead of doing one pass through all routines used in statement for
caching them and then doing another pass for adding their tables to table
list, we do only one pass during which do both things.
|
| | | |
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- Mostly indentation fixes
- Added missing test
- Ensure that Item_func_case() checks for stack overruns
- Use real_item() instead of (Item_ref*) item
- Fixed wrong error handling
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
(BUG#9503)
#define macro improvement
|
| | |
| | |
| | |
| | | |
underlying field names treat as user set ones) (BUG#7448)
|
|\ \ \
| | | |
| | | |
| | | | |
into sanja.is.com.ua:/home/bell/mysql/bk/work-bug4-5.0
|
| |/ /
| | |
| | |
| | | |
(BUG#7015, BUG#11387)
|
|\ \ \
| |/ /
|/| |
| | | |
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
|
| | |
| | |
| | |
| | |
| | |
| | | |
Item_buff -> Cached_item
Item_arena -> Query_arena
TEST_ASSERT -> YYERROR_UNLESS
|
| | | |
|
|/ / |
|
| | |
|
|\ \
| | |
| | |
| | | |
into mysql.com:/home/pem/work/mysql-5.0
|
| | | |
|
| |\ \
| | | |
| | | |
| | | | |
into mysql.com:/home/dlenev/src/mysql-5.0-bg10015
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We should not allow explicit or implicit transaction commits inside
of stored functions or triggers (so in autocommit mode we should not
do commits after execution of sub-statement).
Also since we don't support nested statement transactions in 5.0,
we shouldn't commit or rollback stmt transactions while we are inside
stored functions or triggers. This should be fixed in later (>=5.1)
releases.
|
| | | | |
|
| |\ \ \
| | | |/
| | |/| |
|
| | | |
| | | |
| | | |
| | | | |
'#pragma interface' (that comes with the #include'd header file)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Ensure that 'null_value' is not accessed before val() is called in FIELD() functions
Fixed initialization of key maps. This fixes some problems with keys when you have more than 64 keys
Fixed that ROLLUP don't always create a temporary table. This fix ensures that func_gconcat.test results are now predictable
|
| |\ \ \
| | | | |
| | | | |
| | | | | |
into mysql.com:/home/my/mysql-5.0
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- removed some unreferenced variables
- fixed the libmysql project file by removing a duplicate file reference (merge error)
|
| |\ \ \ \
| | |/ / /
| |/| | | |
|