~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/t/sp_gis.test

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_geometry.inc
 
2
 
 
3
use test;
 
4
 
 
5
#
 
6
# BUG#21025: misleading error message when creating functions named 'x', or 'y'
 
7
#
 
8
 
 
9
--disable_warnings
 
10
drop function if exists a;
 
11
drop function if exists x;
 
12
drop function if exists y;
 
13
--enable_warnings
 
14
 
 
15
create function a() returns int
 
16
return 1;
 
17
 
 
18
create function x() returns int
 
19
return 2;
 
20
 
 
21
create function y() returns int
 
22
return 3;
 
23
 
 
24
select a();
 
25
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
 
26
select x();
 
27
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
 
28
select y();
 
29
select x(PointFromText("POINT(10 20)")), y(PointFromText("POINT(10 20)"));
 
30
 
 
31
# Non deterministic warnings from db_load_routine
 
32
--disable_warnings
 
33
select test.a(), test.x(), test.y();
 
34
--enable_warnings
 
35
 
 
36
drop function a;
 
37
drop function x;
 
38
drop function y;
 
39