phpmyadmin / phpmyadmin/sql-parser

CREATE AGGREGATE FUNCTION not handled

オープン
#625 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
PHP
スター
485
フォーク
119
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello.

I found out that phpMyAdmin 5.2.2 is not handling stored aggregate functions defined as CREATE AGGREGATE FUNCTION described in :
https://mariadb.com/kb/en/stored-aggregate-functions/

I get an error if I define such function by any external mean and want to see it in phpMyAdmin.

Digging into the source code drove me inside this vendor sub-project, file src/Statements/CreateStatement.php.

I tried to add "'AGGREGATE' => 1," to the public static $OPTIONS member of the class CreateStatement into this file, line 36.

This is enough for no longer getting an error, but I suppose this is not enough for having phpMyAdmin properly handling stored aggregate functions.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

src/Statements/CreateStatement.php から始め、特にレポートで言及されている CreateStatement オプションを確認し、issue で説明されている MariaDB CREATE AGGREGATE FUNCTION のケースを再現してください。既存の CREATE FUNCTION の処理と動作を比較してください。集約形式でエラーが発生しなくなり、parser によって適切に処理されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
mariadb, php, sql
領域
databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。