Kentoku
null+****@clear*****
Mon Sep 24 23:54:47 JST 2012
Kentoku 2012-09-24 23:54:47 +0900 (Mon, 24 Sep 2012) New Revision: fda7968e2653363ee04197964dc78c5bb98cf2d2 https://github.com/mroonga/mroonga/commit/fda7968e2653363ee04197964dc78c5bb98cf2d2 Log: Add "create/drop function" for mroonga_snippet. refs #1442 Modified files: packages/debian/mysql-server-mroonga.postinst packages/debian/mysql-server-mroonga.postrm packages/rpm/centos/mysql-mroonga.spec.in packages/rpm/fedora/mysql-mroonga.spec.in Modified: packages/debian/mysql-server-mroonga.postinst (+1 -0) =================================================================== --- packages/debian/mysql-server-mroonga.postinst 2012-09-24 22:31:22 +0900 (689134c) +++ packages/debian/mysql-server-mroonga.postinst 2012-09-24 23:54:47 +0900 (1483d45) @@ -9,6 +9,7 @@ install_plugin() { DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga'; INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so'; +CREATE FUNCTION mroonga_snippet RETURNS STRING soname 'ha_mroonga.so'; EOS } Modified: packages/debian/mysql-server-mroonga.postrm (+1 -0) =================================================================== --- packages/debian/mysql-server-mroonga.postrm 2012-09-24 22:31:22 +0900 (4621c18) +++ packages/debian/mysql-server-mroonga.postrm 2012-09-24 23:54:47 +0900 (3a18670) @@ -3,6 +3,7 @@ set -e cat <<EOS | mysql --defaults-file=/etc/mysql/debian.cnf || true +DROP FUNCTION mroonga_snippet; DROP FUNCTION last_insert_grn_id; UNINSTALL PLUGIN mroonga; FLUSH TABLES; Modified: packages/rpm/centos/mysql-mroonga.spec.in (+2 -0) =================================================================== --- packages/rpm/centos/mysql-mroonga.spec.in 2012-09-24 22:31:22 +0900 (7f4a355) +++ packages/rpm/centos/mysql-mroonga.spec.in 2012-09-24 23:54:47 +0900 (da2a769) @@ -123,6 +123,7 @@ rm -rf $RPM_BUILD_ROOT %post if [ "$1" = 2 ] ; then sql=" + DROP FUNCTION mroonga_snippet; DROP FUNCTION last_insert_grn_id; UNINSTALL PLUGIN mroonga; FLUSH TABLES; @@ -137,6 +138,7 @@ sql=" DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga'; INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so'; +CREATE FUNCTION mroonga_snippet RETURNS STRING soname 'ha_mroonga.so'; " command="/usr/bin/mysql -u root -e \"$sql\"" echo $command Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+2 -0) =================================================================== --- packages/rpm/fedora/mysql-mroonga.spec.in 2012-09-24 22:31:22 +0900 (a8c2f76) +++ packages/rpm/fedora/mysql-mroonga.spec.in 2012-09-24 23:54:47 +0900 (130cf47) @@ -68,6 +68,7 @@ rm -rf $RPM_BUILD_ROOT %post if [ "$1" = 2 ] ; then sql=" + DROP FUNCTION mroonga_snippet; DROP FUNCTION last_insert_grn_id; UNINSTALL PLUGIN mroonga; FLUSH TABLES; @@ -82,6 +83,7 @@ sql=" DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga'; INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so'; +CREATE FUNCTION mroonga_snippet RETURNS STRING soname 'ha_mroonga.so'; " command="/usr/bin/mysql -u root -e \"$sql\"" -------------- next part -------------- HTML����������������������������... 다운로드