-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mroonga_command() 等の関数が初期状態で利用できない #75
Comments
インストール時に実行されるMroongaのインストールスクリプトの構成を変更したのが原因でMroongaのUDFが自動で登録されない状態になっています。 レスポンスが16進数になっているのは、別途調べてみます。 |
レスポンスが16進数になっているのはmysqlコマンドラインクライアントの --binary-as-hex=ON がデフォルトになっているせいだと思います(mroonga_commandが https://github.com/mysql/mysql-server/blob/mysql-8.0.29/client/mysql.cc#L3531-L3544 ワークアラウンドとしては、 |
レスポンスが16進数になっているのはMySQL 8.0からUDFが返す文字列のエンコーディングがデフォルトで MySQL 8.0からは戻り値のメタデータを設定するためのAPIが増えているのでそれでエンコーディングとして 別の回避策は |
DBのボリュームを削除して初期化した状態で起動します。
起動した mysql に接続して mroonga_command() を呼び出そうとすると No database selected というエラーになりました。
/usr/share/mroonga/update.sql に CREATE FUNCTION で mroonga_command() 関数を登録する処理が書かれてることがわかったので、実行してみると mroonga_command() 関数が使えるようになりましたが、これは意図的な動作でしょうか?
レスポンスが16進数になっているのは不思議ですが、デコードすると読むことはできました。
The text was updated successfully, but these errors were encountered: