valgog / pg_sql_parser Goto Github PK
View Code? Open in Web Editor NEWPostgreSQL SQL and PL/pgSQL parser
PostgreSQL SQL and PL/pgSQL parser
@valgog
I noticed that your grammar fires the SelectStmt Rule during normal SELECT-Statements alright,
but unfortunately it fires on VALUES-clauses after INSERT statements as well. Therefore I believe, there could be more cases of this occurrence. Anyway, here is is an example statement where it occured.
This is the PostgreSQL-Code:
CREATE TABLE public.result (
id int,
personname character varying(10),
age integer,
division integer,
projectid character varying(10) NOT NULL,
CONSTRAINT pk_personid PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.result
OWNER TO postgres;
INSERT INTO result(
id,personname, age, division, projectid)
VALUES
(1,'Max', 12, 5, 'AB11001'),
(2,'Felix', 37, 8, 'XX78474'),
(3,'Hanna', 22, 10, 'TET747'),
(4,'Erik', 42, 1, 'HL4745');
And if I try to output SelectStmtContext´s childnode text it gives me:
VALUES(1,'Max',12,5,'AB11001'),(2,'Felix',37,8,'XX78474'),(3,'Hanna',22,10,'TET747'),(4,'Erik',42,1,'HL4745')
as return value. Is there a workaround or is it intended to work that way?
Kind regards
Tornado
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.