ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'get INT)' at line 1
DROP TABLE t1;
CREATE PROCEDURE p1()
CREATE PROCEDURE p1()
BEGIN
BEGIN
DECLARE get INT DEFAULT 1;
DECLARE get INT DEFAULT 1;
END|
END|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'get INT DEFAULT 1;
DROP PROCEDURE p1;
END' at line 3
# Quoting
CREATE TABLE t1 (`get` INT);
INSERT INTO t1 (`get`) values (1);
SELECT `get` FROM t1 WHERE `get` = 1;
get
1
DROP TABLE t1;
CREATE PROCEDURE p1()
CREATE PROCEDURE p1()
get:
BEGIN
BEGIN
DECLARE `get` INT DEFAULT 1;
SELECT 1;
SELECT `get`;
END get|
END|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':
CALL p1();
BEGIN
`get`
SELECT 1;
1
END get' at line 2
DROP PROCEDURE p1;
#
#
# Test non-reserved keywords: CURRENT, DIAGNOSTICS, NUMBER, RETURNED_SQLSTATE
# Test non-reserved keywords: CURRENT, DIAGNOSTICS, NUMBER, RETURNED_SQLSTATE