Bug #27528 Detect geometry parameters in User Defined Functions

Submitted: 29 Mar 2007 15:18 Modified: 3 Apr 2007 11:51
Reporter: Albert Rovira Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: User-defined functions ( UDF ) Severity:S4 (Feature request)
Version:5.0.37 OS:
Assigned to: CPU Architecture:Any
Tags: Geometry, Parameters, udf

[29 Mar 2007 15:18] Albert Rovira
Description:
Permit init() function detect if we are receiving a Geometry.

See below:

How to repeat:

my_bool geo_centroid_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
{
  if (args->arg_count != 1 || args->arg_type[0] != GEOMETRY_RESULT) {
	strcpy(message,"Wrong # of arguments");
    return 1;
  }

  initid->max_length= 0xFFFFFF;
  initid->ptr = NULL;
  return 0;
}
[3 Apr 2007 11:51] Sergei Golubchik
duplicate of bug#27527
[3 Apr 2007 11:53] Sergei Golubchik
not exactly duplicate but very related. both are "support geometry types in UDF", and both will be fixed at the sime time with the same patch

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.