Skip to content

Commit 60cdc8c

Browse files
committed
Firt commit
0 parents  commit 60cdc8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+43450
-0
lines changed

AUTHORS

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
UDFs
3+
----
4+
PREG_CAPTURE - Rich Waters <[email protected]>
5+
PREG_RLIKE - Rich Waters <[email protected]>
6+
PREG_REPLACE - Rich Waters <[email protected]>
7+
LIB_MYSQLUDF_PREG_INFO - Rich Waters <[email protected]>
8+
9+
10+
Regex Compilation & PCRE
11+
------------------------
12+
from_php.c - contains code that was written for php by Philip Hazel.
13+
libpcre, itself, was also written by Philip Hazel.

COPYING

+674
Large diffs are not rendered by default.

ChangeLog

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
1.0.1
2+
-----
3+
Fixed autoconf with pcre on Snow Leaopard by upgrading to new pcre.m4
4+
5+
1.0
6+
---
7+
Install correctly into plugin directory for 5.1 versions of mysql
8+
Fixed problem causing mysqltest to crash
9+
Added PCRE_CHECK function to test if string is a valid pcre
10+
Improved configure script to check some standard locations for pcre library
11+
Fixed preg_capture and preg_position tests so orders are deterministic
12+
13+
14+
0.8.1
15+
-----
16+
Ported to Windows usiong MinGW
17+
Added option for configure --with-mysqlinclude instead of mysql_config instead
18+
of relying on mysql_config
19+
20+
21+
0.7.1
22+
-----
23+
Fixed some documentation generation problems
24+
25+
26+
0.7.0
27+
-----
28+
Made group argument of preg_capture optional
29+
Changed preg_offset to preg_position since it does not return an offset
30+
Added documentation for preg_position
31+
Modified documentation of preg_capture to include occurence argument
32+
Autogenerate more of the documentation
33+
34+
35+
0.6.7
36+
-----
37+
Added preg_offset function
38+
Added preg_capture argument that specifies the match occurence to capture from
39+
40+
41+
0.6.6
42+
-----
43+
Repository checkpoint to overcome the missing 0.6.5 tag
44+
45+
46+
0.6.5
47+
-----
48+
Fixed possible overflow bug in preg_replace
49+
Fixed problem with older pcre annd undefined PCRE_EXTRA_MATCH_LIMIT_RECURSION
50+
51+
52+
0.6.4
53+
-----
54+
Modified ax_mysql_bin.m4 macros to use path if available
55+
Modified ax_mysql_bin.m4 to work without -p if not needed
56+
Fixed ax_mysql_bin.m4 MYSQLBIN_PATH error due to extra spaces before =
57+
58+
59+
0.6.3
60+
-----
61+
Fixed preg_replace bug - longblobs columns could caused crash
62+
Fixed preg_capture bug - handling error return from pregCreateOffsetsVector
63+
Added maintainer-diff target to Makefile.am for diffing with svn tag
64+
Incorporated Arnold's ax_mysql_bin.m4 macros
65+
66+
67+
0.6.2
68+
------
69+
Fixed overflow bug that could cause crash in preg_capture.
70+
Fixed bug in preg_capture that caused initid->max_length to be sent incorrectly
71+
Fixed memory leaks in preg_capture by reorganizing alloc for string returns
72+
Removed arbitrary limit on requested capture group number in preg_capture
73+
Added preg_replace function
74+
Made fixes to autotools set up and added config directory
75+
Separated tests into separate set for each UDF.
76+
Added appropriate --disable_warnings to tests when dropping tables & dbs
77+
Added Makefile.am to test subdirectory and added target to create results
78+
79+
80+
0.6.1
81+
-----
82+
Changed names from libmysql_udf_... to lib_mysqludf_...
83+
Removed 'gh' prefix from SQL functions names and other places
84+
Changed pcre_ prefix to preg_ for all functions so as to collision with libpcre
85+
Fixed configure.ac so that PACKAGE_ veriables are correctly set
86+
Enhanced documentation
87+
Removed some of the less useful doxgen generated files from the distribution
88+
89+
90+
0.5.2
91+
-----
92+
Fixed file naming problems and README
93+
First public release
94+
95+
96+
0.5.1
97+
-----
98+
Almost the initial public release
99+
100+

INSTALL

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
3+
lib_mysqludf_preg - PCRE functions for mysql
4+
===============================================
5+
6+
7+
== Configuration ==
8+
9+
Most users should be able to simply type ./configure to run the configuration
10+
script. If mysql is in an unusual place, try:
11+
12+
./configure --with-mysql=<path to mysql_config>/mysql_config
13+
14+
If libpcre is in an unusual place, try adding:
15+
16+
--with-pcre-prefix=<path to pcre root>
17+
18+
19+
20+
Example (on macosx with fink)
21+
------------------------------
22+
./configure --with-pcre-prefix=/sw --with-mysql=/sw/bin/mysql_config
23+
24+
Please use: ./configure --help to see the other options
25+
26+
27+
== Compile ==
28+
Type make
29+
30+
31+
== Install the library ==
32+
make install
33+
34+
This will install the library in the configured installation directory,
35+
which is defaulted to /usr/local/lib. For the mysql-5.0 series,
36+
this will need to be in the LD_LIBRARY_PATH of the server. For the
37+
5.1 series server, this directory needs to be the 'plugin' directory
38+
(and still needs to be in the LD_LIBRARY_PATH) of the server).
39+
40+
41+
== Install the SQL functions ==
42+
43+
make installdb
44+
45+
To uninstall the functions, you can use: make uninstalldb
46+
47+
== Run some tests ==
48+
make test
49+

Makefile.am

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
.PHONY : test mrproper
3+
4+
lib_LTLIBRARIES = lib_mysqludf_preg.la
5+
6+
lib_mysqludf_preg_la_SOURCES = \
7+
preg.c preg.h \
8+
ghmysql.c ghmysql.h \
9+
from_php.c \
10+
lib_mysqludf_preg_capture.c \
11+
lib_mysqludf_preg_check.c \
12+
lib_mysqludf_preg_info.c \
13+
lib_mysqludf_preg_position.c \
14+
lib_mysqludf_preg_replace.c \
15+
lib_mysqludf_preg_rlike.c
16+
17+
SUBDIRS=test doc
18+
19+
20+
lib_mysqludf_preg_la_CFLAGS = -DSTANDARD -DMYSQL_SERVER @MYSQL_CFLAGS@ @MYSQL_HEADERS@ @PCRE_CFLAGS@
21+
lib_mysqludf_preg_la_LDFLAGS = -module -avoid-version -no-undefined @PCRE_LIBS@
22+
23+
EXTRA_DIST = *.sql
24+
25+
mrproper: clean maintainer-clean
26+
for i in $(SUBDIRS) . ; do ( cd $$i && rm -rf config/config.guess config.h.* config/config.status configure config/missing config/config.sub config/ltmain.sh config/depcomp aclocal.m4 config/install-sh config.log installdb_win.sql config/compile Makefile.in *.tar.gz *.loT config/mkinstalldirs *~); done
27+
28+
mysqlbin:
29+
@if test -z "$(MYSQL)" ; then echo "mysql client app (mysql) not found"; exit 1; fi
30+
31+
installdb_win.sql:installdb.sql
32+
cat installdb.sql | sed 's/\.so/.dll/g' >installdb_win.sql
33+
34+
installdb: uninstalldb installdb_win.sql
35+
if test -f .libs/lib_mysqludf_preg.dll; then \
36+
$(MYSQL) <./installdb_win.sql; \
37+
else \
38+
$(MYSQL) <./installdb.sql;\
39+
fi
40+
41+
uninstalldb: mysqlbin
42+
$(MYSQL) <./uninstalldb.sql
43+
44+
test:
45+
cd test; make test
46+
47+
dist-hook:
48+
rm -rf `find $(distdir) -name .svn`
49+
rm -rf `find $(distdir) -name .git`
50+
rm -rf `find $(distdir) -name .DS_Store`
51+
52+
maintainer-dist:
53+
make dist
54+
git tag "$(PACKAGE)-$(VERSION)"
55+
56+
maintainer-diff:
57+
git diff "$(PACKAGE)-$(DIFFVERSION)" . | gitx
58+

0 commit comments

Comments
 (0)