diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-07-07 12:43:10 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-07-07 12:43:10 +0400 |
commit | 8b2c7c9444db2369d2ecdaa1f14fbc8826a8fb39 (patch) | |
tree | 72fa33f92344a89792845bab9225cef56b4138c4 /mysql-test/r/gis.result | |
parent | 3f327432942ef5db14dd905ffd147f234dc74bfb (diff) | |
parent | 3b862aaa10942e7405b90cf80d0c3baca4cda55d (diff) | |
download | mariadb-git-8b2c7c9444db2369d2ecdaa1f14fbc8826a8fb39.tar.gz |
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
Diffstat (limited to 'mysql-test/r/gis.result')
-rw-r--r-- | mysql-test/r/gis.result | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index daa8c20ddd2..73ec9d3049d 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -1703,6 +1703,24 @@ AsText(g) NULL POINT(1 1) # +# MDEV-10306 Wrong results with combination of CONCAT, SUBSTR and CONVERT in subquery +# +SET @save_optimizer_switch=@@optimizer_switch; +SET optimizer_switch='derived_merge=on'; +CREATE TABLE t1 (x INT, y INT); +INSERT INTO t1 VALUES(0,0); +SELECT LENGTH(t2) c2 FROM (SELECT ST_BUFFER(POINT(x,y), 0) t2 FROM t1) sub; +c2 +25 +SELECT LENGTH(CONCAT(t2,'-',t2)) c2 FROM (SELECT ST_BUFFER(POINT(x,y), 0) t2 FROM t1) sub; +c2 +51 +SELECT LENGTH(CONCAT(t2,'--',t2)) c2 FROM (SELECT ST_BUFFER(POINT(x,y), 0) t2 FROM t1) sub; +c2 +52 +DROP TABLE t1; +SET optimizer_switch=@save_optimizer_switch; +# # End 10.0 tests # SHOW CREATE TABLE information_schema.geometry_columns; |