Permalink
Browse files

Firt commit

  • Loading branch information...
0 parents commit 60cdc8cd2d7227a9e2377a082e6da0a3d10ca364 @jasny jasny committed Apr 25, 2012
Showing with 43,450 additions and 0 deletions.
  1. +13 −0 AUTHORS
  2. +674 −0 COPYING
  3. +100 −0 ChangeLog
  4. +49 −0 INSTALL
  5. +58 −0 Makefile.am
  6. +876 −0 Makefile.in
  7. 0 NEWS
  8. +154 −0 README
  9. +8,772 −0 aclocal.m4
  10. +62 −0 config.h.in
  11. BIN config/._ax_lib_mysql.m4
  12. +158 −0 config/ax_lib_mysql.m4
  13. +96 −0 config/ax_mysql_bin.m4
  14. +1,500 −0 config/config.guess
  15. +1,616 −0 config/config.sub
  16. +584 −0 config/depcomp
  17. +507 −0 config/install-sh
  18. +7,874 −0 config/ltmain.sh
  19. +367 −0 config/missing
  20. +77 −0 config/pcre.m4
  21. +14,678 −0 configure
  22. +33 −0 configure.ac
  23. +84 −0 doc/INSTALL.windows
  24. +22 −0 doc/Makefile.am
  25. +356 −0 doc/Makefile.in
  26. +441 −0 doc/html/doxygen.css
  27. BIN doc/html/doxygen.png
  28. +241 −0 doc/html/index.html
  29. +693 −0 from_php.c
  30. +146 −0 ghmysql.c
  31. +77 −0 ghmysql.h
  32. +10 −0 installdb.sql
  33. +293 −0 lib_mysqludf_preg_capture.c
  34. +195 −0 lib_mysqludf_preg_check.c
  35. +156 −0 lib_mysqludf_preg_info.c
  36. +280 −0 lib_mysqludf_preg_position.c
  37. +292 −0 lib_mysqludf_preg_replace.c
  38. +218 −0 lib_mysqludf_preg_rlike.c
  39. +521 −0 preg.c
  40. +78 −0 preg.h
  41. +31 −0 test/Makefile.am
  42. +368 −0 test/Makefile.in
  43. +24 −0 test/create_testdb.sql
  44. +69 −0 test/lib_mysqludf_preg_capture.result
  45. +72 −0 test/lib_mysqludf_preg_capture.test
  46. +49 −0 test/lib_mysqludf_preg_check.result
  47. +47 −0 test/lib_mysqludf_preg_check.test
  48. +15 −0 test/lib_mysqludf_preg_info.result
  49. +22 −0 test/lib_mysqludf_preg_info.test
  50. +61 −0 test/lib_mysqludf_preg_position.result
  51. +69 −0 test/lib_mysqludf_preg_position.test
  52. +84 −0 test/lib_mysqludf_preg_replace.result
  53. +62 −0 test/lib_mysqludf_preg_replace.test
  54. +53 −0 test/lib_mysqludf_preg_rlike.result
  55. +58 −0 test/lib_mysqludf_preg_rlike.test
  56. +15 −0 uninstalldb.sql
13 AUTHORS
@@ -0,0 +1,13 @@
+
+UDFs
+----
+PREG_CAPTURE - Rich Waters <raw@goodhumans.com>
+PREG_RLIKE - Rich Waters <raw@goodhumans.com>
+PREG_REPLACE - Rich Waters <raw@goodhumans.com>
+LIB_MYSQLUDF_PREG_INFO - Rich Waters <raw@goodhumans.com>
+
+
+Regex Compilation & PCRE
+------------------------
+from_php.c - contains code that was written for php by Philip Hazel.
+libpcre, itself, was also written by Philip Hazel.
674 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
100 ChangeLog
@@ -0,0 +1,100 @@
+1.0.1
+-----
+Fixed autoconf with pcre on Snow Leaopard by upgrading to new pcre.m4
+
+1.0
+---
+Install correctly into plugin directory for 5.1 versions of mysql
+Fixed problem causing mysqltest to crash
+Added PCRE_CHECK function to test if string is a valid pcre
+Improved configure script to check some standard locations for pcre library
+Fixed preg_capture and preg_position tests so orders are deterministic
+
+
+0.8.1
+-----
+Ported to Windows usiong MinGW
+Added option for configure --with-mysqlinclude instead of mysql_config instead
+ of relying on mysql_config
+
+
+0.7.1
+-----
+Fixed some documentation generation problems
+
+
+0.7.0
+-----
+Made group argument of preg_capture optional
+Changed preg_offset to preg_position since it does not return an offset
+Added documentation for preg_position
+Modified documentation of preg_capture to include occurence argument
+Autogenerate more of the documentation
+
+
+0.6.7
+-----
+Added preg_offset function
+Added preg_capture argument that specifies the match occurence to capture from
+
+
+0.6.6
+-----
+Repository checkpoint to overcome the missing 0.6.5 tag
+
+
+0.6.5
+-----
+Fixed possible overflow bug in preg_replace
+Fixed problem with older pcre annd undefined PCRE_EXTRA_MATCH_LIMIT_RECURSION
+
+
+0.6.4
+-----
+Modified ax_mysql_bin.m4 macros to use path if available
+Modified ax_mysql_bin.m4 to work without -p if not needed
+Fixed ax_mysql_bin.m4 MYSQLBIN_PATH error due to extra spaces before =
+
+
+0.6.3
+-----
+Fixed preg_replace bug - longblobs columns could caused crash
+Fixed preg_capture bug - handling error return from pregCreateOffsetsVector
+Added maintainer-diff target to Makefile.am for diffing with svn tag
+Incorporated Arnold's ax_mysql_bin.m4 macros
+
+
+0.6.2
+------
+Fixed overflow bug that could cause crash in preg_capture.
+Fixed bug in preg_capture that caused initid->max_length to be sent incorrectly
+Fixed memory leaks in preg_capture by reorganizing alloc for string returns
+Removed arbitrary limit on requested capture group number in preg_capture
+Added preg_replace function
+Made fixes to autotools set up and added config directory
+Separated tests into separate set for each UDF.
+Added appropriate --disable_warnings to tests when dropping tables & dbs
+Added Makefile.am to test subdirectory and added target to create results
+
+
+0.6.1
+-----
+Changed names from libmysql_udf_... to lib_mysqludf_...
+Removed 'gh' prefix from SQL functions names and other places
+Changed pcre_ prefix to preg_ for all functions so as to collision with libpcre
+Fixed configure.ac so that PACKAGE_ veriables are correctly set
+Enhanced documentation
+Removed some of the less useful doxgen generated files from the distribution
+
+
+0.5.2
+-----
+Fixed file naming problems and README
+First public release
+
+
+0.5.1
+-----
+Almost the initial public release
+
+
49 INSTALL
@@ -0,0 +1,49 @@
+
+
+lib_mysqludf_preg - PCRE functions for mysql
+===============================================
+
+
+== Configuration ==
+
+Most users should be able to simply type ./configure to run the configuration
+script. If mysql is in an unusual place, try:
+
+./configure --with-mysql=<path to mysql_config>/mysql_config
+
+If libpcre is in an unusual place, try adding:
+
+--with-pcre-prefix=<path to pcre root>
+
+
+
+Example (on macosx with fink)
+------------------------------
+./configure --with-pcre-prefix=/sw --with-mysql=/sw/bin/mysql_config
+
+Please use: ./configure --help to see the other options
+
+
+== Compile ==
+Type make
+
+
+== Install the library ==
+make install
+
+This will install the library in the configured installation directory,
+which is defaulted to /usr/local/lib. For the mysql-5.0 series,
+this will need to be in the LD_LIBRARY_PATH of the server. For the
+5.1 series server, this directory needs to be the 'plugin' directory
+(and still needs to be in the LD_LIBRARY_PATH) of the server).
+
+
+== Install the SQL functions ==
+
+make installdb
+
+To uninstall the functions, you can use: make uninstalldb
+
+== Run some tests ==
+make test
+
@@ -0,0 +1,58 @@
+
+.PHONY : test mrproper
+
+lib_LTLIBRARIES = lib_mysqludf_preg.la
+
+lib_mysqludf_preg_la_SOURCES = \
+ preg.c preg.h \
+ ghmysql.c ghmysql.h \
+ from_php.c \
+ lib_mysqludf_preg_capture.c \
+ lib_mysqludf_preg_check.c \
+ lib_mysqludf_preg_info.c \
+ lib_mysqludf_preg_position.c \
+ lib_mysqludf_preg_replace.c \
+ lib_mysqludf_preg_rlike.c
+
+SUBDIRS=test doc
+
+
+lib_mysqludf_preg_la_CFLAGS = -DSTANDARD -DMYSQL_SERVER @MYSQL_CFLAGS@ @MYSQL_HEADERS@ @PCRE_CFLAGS@
+lib_mysqludf_preg_la_LDFLAGS = -module -avoid-version -no-undefined @PCRE_LIBS@
+
+EXTRA_DIST = *.sql
+
+mrproper: clean maintainer-clean
+ 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
+
+mysqlbin:
+ @if test -z "$(MYSQL)" ; then echo "mysql client app (mysql) not found"; exit 1; fi
+
+installdb_win.sql:installdb.sql
+ cat installdb.sql | sed 's/\.so/.dll/g' >installdb_win.sql
+
+installdb: uninstalldb installdb_win.sql
+ if test -f .libs/lib_mysqludf_preg.dll; then \
+ $(MYSQL) <./installdb_win.sql; \
+ else \
+ $(MYSQL) <./installdb.sql;\
+ fi
+
+uninstalldb: mysqlbin
+ $(MYSQL) <./uninstalldb.sql
+
+test:
+ cd test; make test
+
+dist-hook:
+ rm -rf `find $(distdir) -name .svn`
+ rm -rf `find $(distdir) -name .git`
+ rm -rf `find $(distdir) -name .DS_Store`
+
+maintainer-dist:
+ make dist
+ git tag "$(PACKAGE)-$(VERSION)"
+
+maintainer-diff:
+ git diff "$(PACKAGE)-$(DIFFVERSION)" . | gitx
+
Oops, something went wrong.

0 comments on commit 60cdc8c

Please sign in to comment.