summaryrefslogtreecommitdiff
path: root/sql/udf_example.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge shellback.(none):/home/msvensson/mysql/mysql-5.0-maintmsvensson@shellback.(none)2007-09-221-2/+2
|\ | | | | | | into shellback.(none):/home/msvensson/mysql/my51-bug30843
| * Bug #29804 UDF parameters don't contain correct string lengthdkatz@damien-katzs-computer.local2007-09-051-0/+35
| | | | | | | | | | | | | | | | Previously, UDF *_init functions were passed constant strings with erroneous lengths. The length came from the containing variable's size, not the length of the value itself. Now the *_init functions get the constant as a null terminated string with the correct length supplied too.
* | Bug#29804 UDF parameters don't contain correct string lengthmsvensson@pilot.(none)2007-08-091-3/+3
| | | | | | | | | | - Fix warnings - Export 'check_const_len' from udf_example.dll
* | Bug #29804 UDF parameters don't contain correct string lengthdkatz@damien-katzs-computer.local2007-08-051-0/+35
| | | | | | | | | | | | | | | | Previously, UDF *_init functions were passed constant strings with erroneous lengths. The length came from the containing variable's size, not the length of the value itself. Now the *_init functions get the constant as a null terminated string with the correct length supplied.
* | Merge olga.mysql.com:/home/igor/mysql-5.0-optigor@olga.mysql.com2007-06-041-1/+2
|\ \ | |/ | | | | into olga.mysql.com:/home/igor/mysql-5.1-opt-merge
| * bug#27741: udf test fails on AIX < 5.3mhansson@dl145s.mysql.com2007-05-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | problem #1: udf_example.so does not get built on AIX solution#1: build it yourself using cd sql; gcc -g -I ../include/ -I /usr/include/ -lpthread \ -shared -o udf_example.so udf_example.c; mv udf_example.so \ .libs/ problem#2 (the bug): udf_example fails because it does not recognize the variable LD_LIBRARY_PATH when doing dl_open(), it looks at LIBPATH solution#2: add the library path to LIBPATH problem#3: udf_example returns the wrong result length since it relies on strmov to return a pointer to the end of the string that it copies. On AIX builds, where m_string.h is not included (m_string defines a macro expanding strmov to stpcpy), there is a macro expanding strmov to strcpy, which returns a pointer to the first character. solution#3: define strmov as stpcpy. problem#4: #2 applies on hp-ux as well, but this platform looks at SHLIB_PATH solution#4: added the library path to SHLIB_PATH
* | Fixed compilations problems and warnings on windowsmonty@mysql.com/narttu.mysql.fi2007-02-231-1/+1
|/
* Many files:kent@mysql.com/kent-amd64.(none)2006-12-231-2/+1
| | | | Changed header to GPL version 2 only
* Remove warnings by castingtsmith/tim@siva.hindu.god2006-12-191-1/+1
|
* Fix netware compile failuremsvensson@neptunus.(none)2006-11-231-3/+4
| | | | Remove other warnings about unused variables
* Bug#18761: constant expression as UDF parameters not passed in as constantcmiller@zippy.cornsilk.net2006-11-131-0/+30
| | | | | | | | | The code that set up data to be passed to user-defined functions was very old and analyzed the "Type" of the data that was passed into the UDF, when it really should analyze the "return_type", which is hard-coded for simple Items and works correctly for complex ones like functions. --- Added test at Sergei's behest.
* Fix for bug #19121: Windows incompatible udf_examplegeorg@lmy002.wdf.sap.corp2006-09-221-0/+11
|
* Fix a compilation failiure on QNXkostja@bodhi.local2006-08-021-1/+1
|
* udf_example.c, udf.test, Makefile.am:kent@mysql.com/c-4b4072d5.010-2112-6f72651.cust.bredbandsbolaget.se2006-07-291-0/+1067
Converted "udf_example.cc" to C, avoids C++ runtime lib dependency (bug#21336)