Navigation Menu

Skip to content

Commit

Permalink
using lower-case for UDF last_insert_grn_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Nov 22, 2010
1 parent 6d2506e commit 9c906d6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion debian/mysql-server-groonga.postinst
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion debian/mysql-server-groonga.postrm
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions rpm/centos/mysql-groonga.spec.in
Expand Up @@ -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
Expand All @@ -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\""
Expand Down
4 changes: 2 additions & 2 deletions rpm/fedora/mysql-groonga.spec.in
Expand Up @@ -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
Expand All @@ -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\""
Expand Down

0 comments on commit 9c906d6

Please sign in to comment.