Skip to content

Instantly share code, notes, and snippets.

-- Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; version 2 of the License.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
@MarkLeith
MarkLeith / gist:2df3845932e742f7f7a2
Created July 7, 2015 13:34
add list_add / list_drop to sys
diff --git a/README.md b/README.md
index 1f375c6..6249404 100644
--- a/README.md
+++ b/README.md
@@ -3294,6 +3294,88 @@ mysql> select format_time(34234);
1 row in set (0.00 sec)
```
+#### list_add
+
@MarkLeith
MarkLeith / gist:39d199c6d1ad7c90a7d3
Created May 27, 2015 20:17
Add REPLICA synonym for SLAVE in MySQL commands
diff --git a/sql/lex.h b/sql/lex.h
index 5f0b5b2..72c3b5d 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -487,6 +487,7 @@ static const SYMBOL symbols[] = {
{ SYM("REORGANIZE", REORGANIZE_SYM)},
{ SYM("REPAIR", REPAIR)},
{ SYM("REPEATABLE", REPEATABLE_SYM)},
+ { SYM("REPLICA", REPLICA_SYM)},
{ SYM("REPLICATION", REPLICATION)},