Added space character between '--' and comment text in sql scripts.
This commit is contained in:
parent
aa6dd6cc4a
commit
77299fea2e
@ -3,6 +3,6 @@ SET autocommit=1;
|
||||
BEGIN;
|
||||
CREATE DATABASE FOO; -- implicit commit
|
||||
SELECT (@@server_id) INTO @a;
|
||||
SELECT @a; --should read from slave
|
||||
SELECT @a; -- should read from slave
|
||||
DROP DATABASE If EXISTS FOO;
|
||||
COMMIT;
|
||||
|
@ -9,7 +9,7 @@ ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR
|
||||
DO
|
||||
UPDATE t1 SET id = id + 1;
|
||||
SELECT (@@server_id) INTO @a;
|
||||
SELECT @a; --should read from slave
|
||||
SELECT @a; -- should read from slave
|
||||
DROP TABLE IF EXISTS T1;
|
||||
DROP EVENT IF EXISTS myevent;
|
||||
COMMIT;
|
||||
|
@ -4,6 +4,6 @@ SET autocommit=1;
|
||||
BEGIN;
|
||||
CREATE TABLE T1 (id integer); -- implicit commit
|
||||
SELECT (@@server_id) INTO @a;
|
||||
SELECT @a; --should read from slave
|
||||
SELECT @a; -- should read from slave
|
||||
DROP TABLE IF EXISTS T1;
|
||||
COMMIT;
|
||||
|
@ -4,6 +4,6 @@ SET autocommit=0;
|
||||
BEGIN;
|
||||
CREATE TEMPORARY TABLE T1 (id integer); -- NO implicit commit
|
||||
SELECT (@@server_id) INTO @a;
|
||||
SELECT @a; --should read from master
|
||||
SELECT @a; -- should read from master
|
||||
DROP TABLE IF EXISTS T1;
|
||||
COMMIT;
|
||||
|
@ -9,6 +9,6 @@ BEGIN
|
||||
END //
|
||||
DELIMITER ;
|
||||
SELECT (@@server_id) INTO @a;
|
||||
SELECT @a; --should read from slave
|
||||
SELECT @a; -- should read from slave
|
||||
DROP PROCEDURE IF EXISTS simpleproc;
|
||||
COMMIT;
|
||||
|
@ -6,6 +6,6 @@ CREATE FUNCTION hello (s CHAR(20))
|
||||
RETURNS CHAR(50) DETERMINISTIC
|
||||
RETURN CONCAT('Hello, ',s,'!'); -- implicit COMMIT
|
||||
SELECT (@@server_id) INTO @a;
|
||||
SELECT @a; --should read from slave
|
||||
SELECT @a; -- should read from slave
|
||||
DROP FUNCTION IF EXISTS hello;
|
||||
COMMIT;
|
||||
|
@ -5,6 +5,6 @@ SET autocommit=1;
|
||||
BEGIN;
|
||||
CREATE INDEX foo_t1 on T1 (id); -- implicit commit
|
||||
SELECT (@@server_id) INTO @a;
|
||||
SELECT @a; --should read from slave
|
||||
SELECT @a; -- should read from slave
|
||||
DROP TABLE IF EXISTS T1;
|
||||
COMMIT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user