null+****@clear*****
null+****@clear*****
2010年 11月 22日 (月) 09:49:16 JST
Tetsuro IKEDA 2010-11-22 00:49:16 +0000 (Mon, 22 Nov 2010)
New Revision: 9c906d695b0a722ea5ab65797a73444b5aa2b8c4
Log:
using lower-case for UDF last_insert_grn_id.
Modified files:
debian/mysql-server-groonga.postinst
debian/mysql-server-groonga.postrm
rpm/centos/mysql-groonga.spec.in
rpm/fedora/mysql-groonga.spec.in
Modified: debian/mysql-server-groonga.postinst (+1 -1)
===================================================================
--- debian/mysql-server-groonga.postinst 2010-11-22 00:41:39 +0000 (e8dda14)
+++ debian/mysql-server-groonga.postinst 2010-11-22 00:49:16 +0000 (9cd9fca)
@@ -7,7 +7,7 @@ prevver="$2"
install_plugin() {
cat <<EOS | mysql --defaults-file=/etc/mysql/debian.cnf
INSTALL PLUGIN groonga SONAME 'ha_groonga.so';
-CREATE FUNCTION LAST_INSERT_GRN_ID RETURNS INTEGER soname 'ha_groonga.so';
+CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_groonga.so';
EOS
}
Modified: debian/mysql-server-groonga.postrm (+1 -1)
===================================================================
--- debian/mysql-server-groonga.postrm 2010-11-22 00:41:39 +0000 (1b77ddc)
+++ debian/mysql-server-groonga.postrm 2010-11-22 00:49:16 +0000 (d9789db)
@@ -3,7 +3,7 @@
set -e
cat <<EOS | mysql --defaults-file=/etc/mysql/debian.cnf
-DROP FUNCTION LAST_INSERT_GRN_ID;
+DROP FUNCTION last_insert_grn_id;
UNINSTALL PLUGIN groonga;
EOS
Modified: rpm/centos/mysql-groonga.spec.in (+2 -2)
===================================================================
--- rpm/centos/mysql-groonga.spec.in 2010-11-22 00:41:39 +0000 (45df6bd)
+++ rpm/centos/mysql-groonga.spec.in 2010-11-22 00:49:16 +0000 (82d84f2)
@@ -67,7 +67,7 @@ rm -rf $RPM_BUILD_ROOT
%post
sql=<<EOS
INSTALL PLUGIN groonga SONAME 'ha_groonga.so';
-CREATE FUNCTION LAST_INSERT_GRN_ID RETURNS INTEGER soname 'ha_groonga.so';
+CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_groonga.so';
EOS
command="/usr/bin/mysql -u root -e \"$sql\""
echo $command
@@ -77,7 +77,7 @@ eval $command || \
%postun
sql=<<EOS
-DROP FUNCTION LAST_INSERT_GRN_ID;
+DROP FUNCTION last_insert_grn_id;
UNINSTALL PLUGIN groonga;
EOS
command="/usr/bin/mysql -u root -e \"$sql\""
Modified: rpm/fedora/mysql-groonga.spec.in (+2 -2)
===================================================================
--- rpm/fedora/mysql-groonga.spec.in 2010-11-22 00:41:39 +0000 (9c754bc)
+++ rpm/fedora/mysql-groonga.spec.in 2010-11-22 00:49:16 +0000 (48846d3)
@@ -50,7 +50,7 @@ rm -rf $RPM_BUILD_ROOT
%post
sql=<<EOS
INSTALL PLUGIN groonga SONAME 'ha_groonga.so';
-CREATE FUNCTION LAST_INSERT_GRN_ID RETURNS INTEGER soname 'ha_groonga.so';
+CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_groonga.so';
EOS
command="/usr/bin/mysql -u root -p -e \"$sql\""
echo $command
@@ -60,7 +60,7 @@ eval $command || \
%postun
sql=<<EOS
-DROP FUNCTION LAST_INSERT_GRN_ID;
+DROP FUNCTION last_insert_grn_id;
UNINSTALL PLUGIN groonga;
EOS
command="/usr/bin/mysql -u root -p -e \"$sql\""