HAYASHI Kentaro
null+****@clear*****
Wed Mar 27 12:31:33 JST 2013
HAYASHI Kentaro 2013-03-27 12:31:33 +0900 (Wed, 27 Mar 2013) New Revision: 57775257b7e5d6c49a3ced321f968b4992c7e759 https://github.com/mroonga/mroonga/commit/57775257b7e5d6c49a3ced321f968b4992c7e759 Message: rpm: add CREATE/DROP FUNCTION for experimental mroonga_command feature Modified files: packages/rpm/centos/mysql-mroonga.spec.in packages/rpm/fedora/mysql-mroonga.spec.in Modified: packages/rpm/centos/mysql-mroonga.spec.in (+3 -0) =================================================================== --- packages/rpm/centos/mysql-mroonga.spec.in 2013-03-27 12:14:27 +0900 (502b622) +++ packages/rpm/centos/mysql-mroonga.spec.in 2013-03-27 12:31:33 +0900 (eaf6973) @@ -126,6 +126,7 @@ if [ "$1" = 2 ] ; then sql=" DROP FUNCTION mroonga_snippet; DROP FUNCTION last_insert_grn_id; + DROP FUNCTION mroonga_command; UNINSTALL PLUGIN mroonga; FLUSH TABLES; " @@ -140,6 +141,7 @@ 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'; +CREATE FUNCTION mroonga_command RETURNS STRING soname 'ha_mroonga.so'; " command="/usr/bin/mysql -u root -e \"$sql\"" echo $command @@ -152,6 +154,7 @@ if [ "$1" = 0 ]; then sql=" DROP FUNCTION mroonga_snippet; DROP FUNCTION last_insert_grn_id; + DROP FUNCTION mroonga_command; UNINSTALL PLUGIN mroonga; FLUSH TABLES; " Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+3 -0) =================================================================== --- packages/rpm/fedora/mysql-mroonga.spec.in 2013-03-27 12:14:27 +0900 (4b2f882) +++ packages/rpm/fedora/mysql-mroonga.spec.in 2013-03-27 12:31:33 +0900 (84731c7) @@ -71,6 +71,7 @@ if [ "$1" = 2 ] ; then sql=" DROP FUNCTION mroonga_snippet; DROP FUNCTION last_insert_grn_id; + DROP FUNCTION mroonga_command; UNINSTALL PLUGIN mroonga; FLUSH TABLES; " @@ -85,6 +86,7 @@ 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'; +CREATE FUNCTION mroonga_command RETURNS STRING soname 'ha_mroonga.so'; " command="/usr/bin/mysql -u root -e \"$sql\"" @@ -98,6 +100,7 @@ if [ "$1" = 0 ]; then sql=" DROP FUNCTION mroonga_snippet; DROP FUNCTION last_insert_grn_id; + DROP FUNCTION mroonga_command; UNINSTALL PLUGIN mroonga; FLUSH TABLES; " -------------- next part -------------- HTML����������������������������...下載