phpmyadmin / phpmyadmin/sql-parser
Support for special syntaxes for example in SQL_MODE='ORACLE'
オープン
まだ誰も着手していません。
bug
enhancement
kind/support
- 主要言語
- PHP
- スター
- 485
- フォーク
- 119
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello!
I know this library is primarily for MySQL dialects, but this is the only PHP SQL parser I could find...
This can't parse the 'custom' Postgres dump, but I found it can sort of parser the plain text format with varying results.
The parser seems to stop after the first timestamp column (it parsed created_at) so I have a bunch of table create statements with only two columns:
CREATE TABLE public.urls (
id integer NOT NULL,
created_at timestamp(0) without time zone,
updated_at timestamp(0) without time zone,
long_url text NOT NULL
);
Any ideas why?
Thanks!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供された CREATE TABLE 文を SQL パーサーで再現し、“without time zone” を指定した timestamp 列がどのようにトークン化およびパースされるかを確認します。パーサーが created_at の後で停止せずに updated_at と long_url を処理し、この入力を対象とする回帰テストが含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php, postgresql
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100