phpmyadmin / phpmyadmin/sql-parser
CREATE AGGREGATE FUNCTION not handled
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- PHP
- Estrellas
- 485
- Forks
- 119
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza en src/Statements/CreateStatement.php, especialmente con las opciones de CreateStatement mencionadas en el informe, y reproduce el caso de MariaDB CREATE AGGREGATE FUNCTION descrito en el issue. Compara su comportamiento con el manejo existente de CREATE FUNCTION; se considera terminado cuando la forma agregada ya no produce errores y el parser la gestiona correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- mariadb, php, sql
- Área
- databases
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100