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

« back to all changes in this revision

Viewing changes to mysql-test/r/sp_gis.result

  • 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
use test;
 
2
drop function if exists a;
 
3
drop function if exists x;
 
4
drop function if exists y;
 
5
create function a() returns int
 
6
return 1;
 
7
create function x() returns int
 
8
return 2;
 
9
Warnings:
 
10
Note    1585    This function 'x' has the same name as a native function
 
11
create function y() returns int
 
12
return 3;
 
13
Warnings:
 
14
Note    1585    This function 'y' has the same name as a native function
 
15
select a();
 
16
a()
 
17
1
 
18
select x();
 
19
ERROR 42000: Incorrect parameter count in the call to native function 'x'
 
20
select y();
 
21
ERROR 42000: Incorrect parameter count in the call to native function 'y'
 
22
select x(PointFromText("POINT(10 20)")), y(PointFromText("POINT(10 20)"));
 
23
x(PointFromText("POINT(10 20)"))        y(PointFromText("POINT(10 20)"))
 
24
10      20
 
25
select test.a(), test.x(), test.y();
 
26
test.a()        test.x()        test.y()
 
27
1       2       3
 
28
drop function a;
 
29
drop function x;
 
30
drop function y;