[Groonga-mysql-commit] mroonga/mroonga at 42e2490 [master] rpm: specify database explicitly

Back to archive index

HAYASHI Kentaro null+****@clear*****
Mon Sep 2 16:22:20 JST 2013


HAYASHI Kentaro	2013-09-02 16:22:20 +0900 (Mon, 02 Sep 2013)

  New Revision: 42e2490c21ef6b013bdd9bb3bf0cbdcf7bb9fcb9
  https://github.com/mroonga/mroonga/commit/42e2490c21ef6b013bdd9bb3bf0cbdcf7bb9fcb9

  Message:
    rpm: specify database explicitly
    
    It fixes "No database selected" error.
    
    refs #1918

  Modified files:
    packages/rpm/centos/mysql-mroonga.spec.in
    packages/rpm/fedora/mariadb-mroonga.spec.in
    packages/rpm/fedora/mysql-mroonga.spec.in

  Modified: packages/rpm/centos/mysql-mroonga.spec.in (+2 -0)
===================================================================
--- packages/rpm/centos/mysql-mroonga.spec.in    2013-09-02 16:20:14 +0900 (5efa764)
+++ packages/rpm/centos/mysql-mroonga.spec.in    2013-09-02 16:22:20 +0900 (4d921a5)
@@ -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;
@@ -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;

  Modified: packages/rpm/fedora/mariadb-mroonga.spec.in (+2 -0)
===================================================================
--- packages/rpm/fedora/mariadb-mroonga.spec.in    2013-09-02 16:20:14 +0900 (424d73d)
+++ packages/rpm/fedora/mariadb-mroonga.spec.in    2013-09-02 16:22:20 +0900 (b6a77ed)
@@ -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;
@@ -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;

  Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+2 -0)
===================================================================
--- packages/rpm/fedora/mysql-mroonga.spec.in    2013-09-02 16:20:14 +0900 (985991c)
+++ packages/rpm/fedora/mysql-mroonga.spec.in    2013-09-02 16:22:20 +0900 (add968b)
@@ -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;
@@ -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;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index