1- diff -uN lib_mysqludf_sys /install.sh lib_mysqludf_sys_0.0.3 /install.sh
2- --- lib_mysqludf_sys /install.sh 1970-01-01 01:00:00.000000000 +0100
3- +++ lib_mysqludf_sys_0.0.3 /install.sh 2009-01-15 16:04:50 .000000000 +0000
4- @@ -0,0 +1,25 @@
1+ diff -uN lib_mysqludf_sys_0.0.2 /install.sh lib_mysqludf_sys /install.sh
2+ --- lib_mysqludf_sys_0.0.2 /install.sh 1970-01-01 01:00:00.000000000 +0100
3+ +++ lib_mysqludf_sys /install.sh 2009-01-21 00:51:52 .000000000 +0000
4+ @@ -0,0 +1,43 @@
55+ #!/bin/bash
6+ + # lib_mysqludf_sys - a library with miscellaneous (operating) system level functions
7+ + # Copyright (C) 2007 Roland Bouman
8+ + # Copyright (C) 2008-2009 Roland Bouman and Bernardo Damele A. G.
9+ + # web: http://www.mysqludf.org/
10+ 11+ + #
12+ + # This library is free software; you can redistribute it and/or
13+ + # modify it under the terms of the GNU Lesser General Public
14+ + # License as published by the Free Software Foundation; either
15+ + # version 2.1 of the License, or (at your option) any later version.
16+ + #
17+ + # This library is distributed in the hope that it will be useful,
18+ + # but WITHOUT ANY WARRANTY; without even the implied warranty of
19+ + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20+ + # Lesser General Public License for more details.
21+ + #
22+ + # You should have received a copy of the GNU Lesser General Public
23+ + # License along with this library; if not, write to the Free Software
24+ + # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
625+
726+ echo "Compiling the MySQL UDF"
827+ make
@@ -16,21 +35,20 @@ diff -uN lib_mysqludf_sys/install.sh lib_mysqludf_sys_0.0.3/install.sh
1635+ echo "MySQL UDF compiled successfully"
1736+ fi
1837+
19- + echo -e "\nPlease provide your MySQL root password and press RETURN: \c"
20- + read PASSWORD
38+ + echo -e "\nPlease provide your MySQL root password"
2139+
22- + mysql -u root --password=$PASSWORD mysql < lib_mysqludf_sys.sql
40+ + mysql -u root -p mysql < lib_mysqludf_sys.sql
2341+
2442+ if test $? -ne 0; then
2543+ echo "ERROR: unable to install the UDF"
2644+ exit 1
2745+ else
2846+ echo "MySQL UDF installed successfully"
2947+ fi
30- Binary files lib_mysqludf_sys /lib_mysqludf_sys_0.0.2.tar.gz and lib_mysqludf_sys_0.0.3 /lib_mysqludf_sys_0.0.2.tar.gz differ
31- diff -uN lib_mysqludf_sys /lib_mysqludf_sys.c lib_mysqludf_sys_0.0.3 /lib_mysqludf_sys.c
32- --- lib_mysqludf_sys /lib_mysqludf_sys.c 2007-08-05 13:46:43 .000000000 +0100
33- +++ lib_mysqludf_sys_0.0.3 /lib_mysqludf_sys.c 2009-01-15 15:55:33 .000000000 +0000
48+ Binary files lib_mysqludf_sys_0.0.2 /lib_mysqludf_sys_0.0.2.tar.gz and lib_mysqludf_sys /lib_mysqludf_sys_0.0.2.tar.gz differ
49+ diff -uN lib_mysqludf_sys_0.0.2 /lib_mysqludf_sys.c lib_mysqludf_sys /lib_mysqludf_sys.c
50+ --- lib_mysqludf_sys_0.0.2 /lib_mysqludf_sys.c 2009-01-21 20:52:54 .000000000 +0000
51+ +++ lib_mysqludf_sys /lib_mysqludf_sys.c 2009-01-21 00:06:13 .000000000 +0000
3452@@ -1,8 +1,9 @@
3553 /*
3654 lib_mysqludf_sys - a library with miscellaneous (operating) system level functions
@@ -150,19 +168,19 @@ diff -uN lib_mysqludf_sys/lib_mysqludf_sys.c lib_mysqludf_sys_0.0.3/lib_mysqludf
150168+ if (!(*result) || result == NULL) {
151169+ *is_null = 1;
152170+ } else {
153- + result[outlen] = 0x00;
154- + *length = strlen(result);
171+ + result[outlen] = 0x00;
172+ + *length = strlen(result);
155173+ }
156174+
157- + return result;
175+ + return result;
158176+ }
159177+
160178
161179 #endif /* HAVE_DLOPEN */
162- Binary files lib_mysqludf_sys /lib_mysqludf_sys.so and lib_mysqludf_sys_0.0.3 /lib_mysqludf_sys.so differ
163- diff -uN lib_mysqludf_sys /lib_mysqludf_sys.sql lib_mysqludf_sys_0.0.3 /lib_mysqludf_sys.sql
164- --- lib_mysqludf_sys /lib_mysqludf_sys.sql 2007-06-02 20:42:53 .000000000 +0100
165- +++ lib_mysqludf_sys_0.0.3 /lib_mysqludf_sys.sql 2009-01-15 15:57:34 .000000000 +0000
180+ Binary files lib_mysqludf_sys_0.0.2 /lib_mysqludf_sys.so and lib_mysqludf_sys /lib_mysqludf_sys.so differ
181+ diff -uN lib_mysqludf_sys_0.0.2 /lib_mysqludf_sys.sql lib_mysqludf_sys /lib_mysqludf_sys.sql
182+ --- lib_mysqludf_sys_0.0.2 /lib_mysqludf_sys.sql 2009-01-21 20:52:54 .000000000 +0000
183+ +++ lib_mysqludf_sys /lib_mysqludf_sys.sql 2009-01-21 00:51:00 .000000000 +0000
166184@@ -1,8 +1,9 @@
167185 /*
168186 lib_mysqludf_sys - a library with miscellaneous (operating) system level functions
@@ -198,9 +216,9 @@ diff -uN lib_mysqludf_sys/lib_mysqludf_sys.sql lib_mysqludf_sys_0.0.3/lib_mysqlu
198216+ CREATE FUNCTION sys_set RETURNS int SONAME 'lib_mysqludf_sys.so';
199217+ CREATE FUNCTION sys_exec RETURNS int SONAME 'lib_mysqludf_sys.so';
200218+ CREATE FUNCTION sys_eval RETURNS string SONAME 'lib_mysqludf_sys.so';
201- diff -uN lib_mysqludf_sys/Makefile lib_mysqludf_sys_0.0.3 /Makefile
202- --- lib_mysqludf_sys /Makefile 2007-08-05 12:54:53 .000000000 +0100
203- +++ lib_mysqludf_sys_0.0.3 /Makefile 2009-01-15 15:52:48 .000000000 +0000
219+ diff -uN lib_mysqludf_sys_0.0.2/Makefile lib_mysqludf_sys /Makefile
220+ --- lib_mysqludf_sys_0.0.2 /Makefile 2009-01-21 20:52:54 .000000000 +0000
221+ +++ lib_mysqludf_sys /Makefile 2009-01-19 09:11:00 .000000000 +0000
204222@@ -1,6 +1,4 @@
205223- linux: \
206224- lib_mysqludf_sys.so
@@ -211,3 +229,4 @@ diff -uN lib_mysqludf_sys/Makefile lib_mysqludf_sys_0.0.3/Makefile
211229- gcc -Wall -I/opt/mysql/mysql/include -I. -shared lib_mysqludf_sys.c -o lib_mysqludf_sys.so
212230+ install:
213231+ gcc -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so
232+ Common subdirectories: lib_mysqludf_sys_0.0.2/.svn and lib_mysqludf_sys/.svn
0 commit comments