Navigation Menu

Skip to content

Commit

Permalink
rpm: specify database explicitly
Browse files Browse the repository at this point in the history
It fixes "No database selected" error.

refs #1918
  • Loading branch information
kenhys committed Sep 2, 2013
1 parent a296469 commit 42e2490
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rpm/centos/mysql-mroonga.spec.in
Expand Up @@ -124,6 +124,7 @@ rm -rf $RPM_BUILD_ROOT
%post
if [ "$1" = 2 ] ; then
sql="
USE mysql;
DROP FUNCTION IF EXISTS mroonga_snippet;
DROP FUNCTION IF EXISTS last_insert_grn_id;
DROP FUNCTION IF EXISTS mroonga_command;
Expand Down Expand Up @@ -154,6 +155,7 @@ eval $command || \
%preun
if [ "$1" = 0 ]; then
sql="
USE mysql;
DROP FUNCTION IF EXISTS mroonga_snippet;
DROP FUNCTION IF EXISTS last_insert_grn_id;
DROP FUNCTION IF EXISTS mroonga_command;
Expand Down
2 changes: 2 additions & 0 deletions packages/rpm/fedora/mariadb-mroonga.spec.in
Expand Up @@ -70,6 +70,7 @@ rm -rf $RPM_BUILD_ROOT
%post
if [ "$1" = 2 ] ; then
sql="
USE mysql;
DROP FUNCTION IF EXISTS mroonga_snippet;
DROP FUNCTION IF EXISTS last_insert_grn_id;
DROP FUNCTION IF EXISTS mroonga_command;
Expand Down Expand Up @@ -101,6 +102,7 @@ eval $command || \
%preun
if [ "$1" = 0 ]; then
sql="
USE mysql;
DROP FUNCTION IF EXISTS mroonga_snippet;
DROP FUNCTION IF EXISTS last_insert_grn_id;
DROP FUNCTION IF EXISTS mroonga_command;
Expand Down
2 changes: 2 additions & 0 deletions packages/rpm/fedora/mysql-mroonga.spec.in
Expand Up @@ -70,6 +70,7 @@ rm -rf $RPM_BUILD_ROOT
%post
if [ "$1" = 2 ] ; then
sql="
USE mysql;
DROP FUNCTION IF EXISTS mroonga_snippet;
DROP FUNCTION IF EXISTS last_insert_grn_id;
DROP FUNCTION IF EXISTS mroonga_command;
Expand Down Expand Up @@ -101,6 +102,7 @@ eval $command || \
%preun
if [ "$1" = 0 ]; then
sql="
USE mysql;
DROP FUNCTION IF EXISTS mroonga_snippet;
DROP FUNCTION IF EXISTS last_insert_grn_id;
DROP FUNCTION IF EXISTS mroonga_command;
Expand Down

0 comments on commit 42e2490

Please sign in to comment.