Binary Logging of Stored Programs
1713
• Because procedure logging occurs at the statement level rather than at the
CALL
level, interpretation
of the
--replicate-*-table
options is revised to apply only to stored functions. They no longer
apply to stored procedures, except those procedures that are invoked from within functions.
Routine logging changes in MySQL 5.0.16: In 5.0.12, a change was introduced to log stored
procedure calls at the statement level rather than at the
CALL
level. This change eliminates
the requirement that procedures be identified as safe. The requirement now exists only for
stored functions, because they still appear in the binary log as function invocations rather
than as the statements executed within the function. To reflect the lifting of the restriction on
stored procedures, the
log_bin_trust_routine_creators
system variable is renamed
to
log_bin_trust_function_creators
[463]
and the
--log-bin-trust-routine-
creators
[1468]
server option is renamed to
--log-bin-trust-function-creators
[1468]
.
(For backward compatibility, the old names are recognized but result in a warning.) Error messages
that now apply only to functions and not to routines in general are re-worded.
Routine logging changes in MySQL 5.0.19: In 5.0.12, a change was introduced to log a stored
function invocation as
DO func_name()
if the invocation changes data and occurs within a nonlogged
statement, or if the function invokes a stored procedure that produces an error. In 5.0.19, these
invocations are logged as
SELECT func_name()
instead. The change to
SELECT
was made because
use of
DO
was found to yield insufficient control over error code checking.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...