-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-27666 User variable not parsed as geometry variable in geometry …
…function Adding GEOMETRY type user variables.
- Loading branch information
Showing
23 changed files
with
509 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SET @g0= POINT(1,1); | ||
SET @g1= Polygon(LineString(Point(0, 0), Point(30, 0), Point(30, 30), Point(0, 0))); | ||
CREATE TABLE t1 AS SELECT @g0 AS g0, @g1 AS g1; | ||
DROP TABLE t1; | ||
include/show_binlog_events.inc | ||
Log_name Pos Event_type Server_id End_log_pos Info | ||
master-bin.000001 # Gtid # # GTID #-#-# | ||
master-bin.000001 # User var # # @`g0`=/*point*/_binary X'000000000101000000000000000000F03F000000000000F03F' COLLATE binary | ||
master-bin.000001 # User var # # @`g1`=/*polygon*/_binary X'0000000001030000000100000004000000000000000000000000000000000000000000000000003E4000000000000000000000000000003E400000000000003E4000000000000000000000000000000000' COLLATE binary | ||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 AS SELECT @g0 AS g0, @g1 AS g1 | ||
master-bin.000001 # Gtid # # GTID #-#-# | ||
master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--source include/not_embedded.inc | ||
--source include/have_binlog_format_statement.inc | ||
--source include/have_geometry.inc | ||
|
||
--disable_query_log | ||
reset master; # get rid of previous tests binlog | ||
--enable_query_log | ||
|
||
SET @g0= POINT(1,1); | ||
SET @g1= Polygon(LineString(Point(0, 0), Point(30, 0), Point(30, 30), Point(0, 0))); | ||
CREATE TABLE t1 AS SELECT @g0 AS g0, @g1 AS g1; | ||
DROP TABLE t1; | ||
|
||
--let $binlog_file = LAST | ||
source include/show_binlog_events.inc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
include/master-slave.inc | ||
[connection master] | ||
# | ||
# | ||
# | ||
connection master; | ||
SET @p=POINT(1,1); | ||
CREATE TABLE t1 AS SELECT @p AS p; | ||
connection slave; | ||
SHOW CREATE TABLE t1; | ||
Table Create Table | ||
t1 CREATE TABLE `t1` ( | ||
`p` point DEFAULT NULL | ||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci | ||
SELECT ST_AsWKT(p) FROM t1; | ||
ST_AsWKT(p) | ||
POINT(1 1) | ||
connection master; | ||
DROP TABLE t1; | ||
connection slave; | ||
include/rpl_end.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--source include/have_geometry.inc | ||
--source include/master-slave.inc | ||
|
||
--echo # | ||
--echo # | ||
--echo # | ||
|
||
connection master; | ||
SET @p=POINT(1,1); | ||
CREATE TABLE t1 AS SELECT @p AS p; | ||
sync_slave_with_master; | ||
SHOW CREATE TABLE t1; | ||
SELECT ST_AsWKT(p) FROM t1; | ||
connection master; | ||
DROP TABLE t1; | ||
sync_slave_with_master; | ||
|
||
--source include/rpl_end.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.