An error occurred fetching the project authors.
- 06 Apr, 2006 1 commit
-
-
svoj@april.(none) authored
counter". When TRUNCATE TABLE was called within an stored procedure the auto_increment counter was not reset to 0 even if straight TRUNCATE for this table did this. This fix makes TRUNCATE in stored procedures to be handled exactly in the same way as straight TRUNCATE. We achieve this by rolling back the fix for bug 8850, which is no longer needed since stored procedures don't require prelocked mode anymore (and TRUNCATE is not allowed in stored functions or triggers).
-
- 28 Mar, 2006 1 commit
-
-
pem@mysql.com authored
-
- 10 Mar, 2006 2 commits
-
-
pem@mysql.com authored
fix_fields() was not called for "order by" variables if the type was a "constant integer", and thus interpreted as a column index. However, a local variable is an expression and should not be interpreted as a column index. Instead it behaves just like when using a user variable for instance (i.e. it will not affect the ordering).
-
evgen@moonbone.local authored
produce wrong data By default Item_sp_func::val_str() returns string from it's result_field internal buffer. When grouping is present Item_copy_string is used to store SP function result, but it doesn't additionally buffer the result. When the next record is read, internal buffer is overwritten, due to this Item_copy_string::val_str() will have wrong data. Thus producing weird query result. The Item_func_sp::val_str() now makes a copy of returned value to prevent occasional corruption.
-
- 09 Mar, 2006 1 commit
-
-
msvensson@neptunus.(none) authored
-Add test case Move testcase that needs innodb from sp.test => sp_trans.test
-
- 02 Mar, 2006 2 commits
-
-
pem@mysql.com authored
time per connection Removed const_string() method from Item_string (it was only used in one place, in a bad way). Defer possible SP variable, and access data directly instead, in date_format item.
-
ramil@mysql.com authored
-
- 24 Feb, 2006 1 commit
-
-
monty@mysql.com authored
(Needed for "list of pushes" web page and autopush)
-
- 16 Feb, 2006 1 commit
-
-
msvensson@neptunus.(none) authored
-
- 15 Feb, 2006 2 commits
-
-
pem@mysql.com authored
A follow-up to BUG#15011 (already fixed).
-
pem@mysql.com authored
The problem was a code generation bug: cpop instructions were not generated when using ITERATE back to an outer block from a context with a declared cursor; this would make it push a new cursor without popping in-between, eventually overrunning the cursor stack with a crash as the result. Fixed the calculation of how many cursors to pop (in sp_pcontext.cc: diff_cursors()), and also corrected diff_cursors() and diff_handlers() to when doing a "leave"; don't include the last context we're leaving (we are then jumping to the appropriate pop instructions).
-
- 26 Jan, 2006 1 commit
-
-
pem@mysql.com authored
After trying multiple inheritance (to messy and hard make it work) and sublassing jump_if_not (worked, but ugly), decided to on this solution instead: Inserting an abstract sp_instr_opt_meta class as parent for all instructions with destinations makes it possible to handle a continuation pointer for sp_instr_set_case_expr too. Note: No special test case; the fix is captured by the changed behaviour of bug14643_2, and bug14498_4 (formerly disabled), in sp.test.
-
- 25 Jan, 2006 1 commit
-
-
pem@mysql.com authored
For nested sql errno handlers (unlike sqlexception and other), we didn't stop searching when the innermost handler was found - now make sure we do.
-
- 20 Jan, 2006 1 commit
-
-
pem@mysql.com authored
-
- 19 Jan, 2006 1 commit
-
-
pem@mysql.com authored
Lowered the parameter to 10, and also renamed non-standard table names to t3.
-
- 16 Jan, 2006 1 commit
-
-
pem@mysql.com authored
-
- 12 Jan, 2006 1 commit
-
-
dlenev@mysql.com authored
functions". We should ignore alias when we check if table was already marked as temporary when we calculate set of tables to be prelocked. Otherwise we will erroneously treat tables which are used in same routine and have same name but different alias as non-temporary.
-
- 13 Dec, 2005 2 commits
-
-
pem@mysql.com authored
-
pem@mysql.com authored
Make the distinction between "exception conditions" and "completion conditions" (warning and "no data") as defined by the standard. The latter should not terminate a routine if no handler is found in the lexical scope.
-
- 08 Dec, 2005 1 commit
-
-
konstantin@mysql.com authored
to Crash": the bug was that due to non-standard name resolution precedence in stored procedures (See Bug#5967) a stored procedure variable took precedence over a table column when the arguments for VALUES() function were resolved. The implementation of VALUES() function was not designed to work with Item_splocal and crashed. VALUES() function is non-standard. It can refer to, and is meaningful for, table columns only. The patch disables SP variables as possible arguments of VALUES() function.
-
- 07 Dec, 2005 1 commit
-
-
anozdrin@mysql.com authored
according to the standard. The idea is to use Field-classes to implement stored routines variables. Also, we should provide facade to Item-hierarchy by Item_field class (it is necessary, since SRVs take part in expressions). The patch fixes the following bugs: - BUG#8702: Stored Procedures: No Error/Warning shown for inappropriate data type matching; - BUG#8768: Functions: For any unsigned data type, -ve values can be passed and returned; - BUG#8769: Functions: For Int datatypes, out of range values can be passed and returned; - BUG#9078: STORED PROCDURE: Decimal digits are not displayed when we use DECIMAL datatype; - BUG#9572: Stored procedures: variable type declarations ignored; - BUG#12903: upper function does not work inside a function; - BUG#13705: parameters to stored procedures are not verified; - BUG#13808: ENUM type stored procedure parameter accepts non-enumerated data; - BUG#13909: Varchar Stored Procedure Parameter always BINARY string (ignores CHARACTER SET); - BUG#14161: Stored procedure cannot retrieve bigint unsigned; - BUG#14188: BINARY variables have no 0x00 padding; - BUG#15148: Stored procedure variables accept non-scalar values;
-
- 06 Dec, 2005 1 commit
-
-
konstantin@mysql.com authored
prepared statement execute
-
- 03 Dec, 2005 1 commit
-
-
serg@serg.mylan authored
it's about mysql_admin_commands not being reexecution-safe (and CHECK still isn't)
-
- 02 Dec, 2005 2 commits
-
-
serg@serg.mylan authored
Mark them properly as result-returning statements
-
konstantin@mysql.com authored
used instead of column", the bug is to be fixed later.
-
- 01 Dec, 2005 1 commit
-
-
ramil@mysql.com authored
Fix for bug #14304: auto_increment field incorrect set from within stored procedure (insert select).
-
- 26 Nov, 2005 1 commit
-
-
dlenev@mysql.com authored
earlier because of various features/checks missing (these features/checks are now implemented).
-
- 24 Nov, 2005 1 commit
-
-
pem@mysql.com authored
-
- 23 Nov, 2005 1 commit
-
-
pem@mysql.com authored
Don't set thd->is_fatal_error in sql_update for duplicate key errors.
-
- 22 Nov, 2005 2 commits
-
-
bell@sanja.is.com.ua authored
-
bell@sanja.is.com.ua authored
if inner routine has more local variables than outer one, and one of its last variables was used as argument to NOT operator". THD::spcont was non-0 when we were parsing stored routine/trigger definition during execution of another stored routine. This confused methods of Item_splocal and forced them use wrong runtime context. Fix ensures that we always have THD::spcont equal to zero during routine/trigger body parsing. This also allows to avoid problems with errors which occur during parsing and SQL exception handlers.
-
- 18 Nov, 2005 1 commit
-
-
konstantin@mysql.com authored
when COUNT(*) is 0". The bug itself cannot be repeated.
-
- 15 Nov, 2005 1 commit
-
-
pem@mysql.com authored
in the function body Changed the way the end of query was found from the lex state. The routine body was not extracted correctly when using the /*!version ... */ wrapper (in dump files); for some types of routines (e.g. with a label at the first begin), the trailing "*/" was not skipped. This is a recommit for the 5.0.16-release tree.
-
- 11 Nov, 2005 1 commit
-
-
pem@mysql.com authored
in the function body Changed the way the end of query was found from the lex state. The routine body was not extracted correctly when using the /*!version ... */ wrapper (in dump files); for some types of routines (e.g. with a label at the first begin), the trailing "*/" was not skipped.
-
- 08 Nov, 2005 1 commit
-
-
pem@mysql.com authored
initialization crashes server. Make sure variables are initialized to something (like null) when the default initialization fails and a continue handler is in effect.
-
- 04 Nov, 2005 1 commit
-
-
pem@mysql.com authored
The problem was to continue at the right place in the code after the test expression in a flow control statement fails with an exception (internally, the test in sp_instr_jump_if_not), and the exception is caught by a continue handler. Execution must then be resumed after the the entire flow control statement (END IF, END WHILE, etc).
-
- 03 Nov, 2005 1 commit
-
-
konstantin@mysql.com authored
large table gives server crash": make sure that when a MyISAM temporary table is created for a cursor, it's created in its memory root, not the memory root of the current query.
-
- 01 Nov, 2005 1 commit
-
-
pem@mysql.com authored
Added finer scope control for default clauses of local variable declarations.
-
- 26 Oct, 2005 1 commit
-
-
pem@mysql.com authored
Added error checking for errors when attempting to use stored procedures after the mysql.proc table has been dropped, corrupted, or tampered with. Test cases were put in a separate file (sp-destruct.test).
-
- 24 Oct, 2005 1 commit
-
-
anozdrin@mysql.com authored
- allow CREATE VIEW as well as DROP VIEW to use in prepared statements; - fix CREATE VIEW implementation to make it work in prepared statements.
-