~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/replication.rst

  • Committer: Lee Bieber
  • Date: 2011-02-16 14:48:10 UTC
  • mfrom: (2172.1.5 build)
  • Revision ID: kalebral@gmail.com-20110216144810-u3w6f3a5s6qwisrz
Merge Stewart - remove unused macros
Merge Olaf - remove old style casts
Merge Stewart remove  unused macros in drizzledump
Merge Andrew - 718657: Several errors in Date/Time docs
Merge Olaf - Move strfunc functions into TYPELIB class

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    default global value is FALSE which will not include the query in the
25
25
    messages. It can be controlled per session, as well. For example:
26
26
 
27
 
    ``drizzle> set @@replicate_query = 1;``
 
27
    .. code-block:: mysql
 
28
 
 
29
       drizzle> set @@replicate_query = 1;
28
30
 
29
31
    The stored query should be used as a guide only, and never executed
30
32
    on a slave to perform replication as this will lead to incorrect results.
164
166
It's easiest to understand this mechanism by following through a real-world
165
167
scenario.
166
168
 
167
 
Suppose the following table::
 
169
Suppose the following table:
 
170
 
 
171
.. code-block:: mysql
168
172
 
169
173
  CREATE TABLE test.person
170
174
  (
176
180
 
177
181
Also suppose that test.t1 contains 1 million records.
178
182
 
179
 
Next, suppose a client issues the SQL statement::
 
183
Next, suppose a client issues the SQL statement:
 
184
 
 
185
.. code-block:: mysql
180
186
 
181
187
  UPDATE test.person SET is_active = 'N';
182
188