~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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