Re: [gnome-db] [PATCH] support for inner queries alias without the `AS`.
Daniel Espinosa <[email protected]> Wed, 3 Feb 2016 17:48:21 -0600
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <CAHirWtKUCd66+k1hwLd-2p6SK1Y5w5VtZGbzFvgXeERcyd96vg@mail.gmail.com> |
--===============8345096694527191389== Content-Type: multipart/alternative; boundary=001a11488a78d3a2de052ae64098 --001a11488a78d3a2de052ae64098 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable May be for Vivien this is Ok. But may you want to know when your patch is accepted or reviewed. If so ma is better if you file a bug in bugzilla.gnome.org El feb. 3, 2016 3:39 PM, "Arthur Neves" <[email protected]> escribi=C3=B3: > Hi folks, > > I am using libgda to parse all queries on my app, however I saw that > sub-queries that had an alias were not working, for instance: > > SELECT foo.abc FROM (select abc from bar) foo; > > See this is valid on sqlite3: > > sqlite> create table bar(abc varchar(10)); > sqlite> insert into bar values('hi'); > sqlite> SELECT foo.abc FROM (select abc from bar) foo; > hi > > Seems like that syntax was not handled by the parser.y lemon file. So I > have a patch for it: > > https://github.com/arthurnn/libgda/commit/0ba0e8f49f90304256e4fca637928d8= cad55a1e0 > > Let me know what is the proper way to contribute to this library, if > sending a Pull Request on GitHub, or sending a .patch file on the mailing > list. > > Let me know if this makes sense > > Thanks a lot > > > > _______________________________________________ > gnome-db-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gnome-db-list > > --001a11488a78d3a2de052ae64098 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">May be for Vivien this is Ok.</p> <p dir=3D"ltr">But may you want to know when your patch is accepted or revi= ewed. If so ma is better if you file a bug in <a href=3D"http://bugzilla.gn= ome.org">bugzilla.gnome.org</a></p> <div class=3D"gmail_quote">El feb. 3, 2016 3:39 PM, "Arthur Neves"= ; <<a href=3D"mailto:[email protected]">[email protected]</a>> escr= ibi=C3=B3:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style= =3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir= =3D"ltr"><div>Hi folks,</div><div><br></div>I am using libgda to parse all = queries on my app, however I saw that sub-queries that had an alias were no= t working, for instance:=C2=A0<div><br><div>=C2=A0 SELECT foo.abc FROM (sel= ect abc from bar) foo;</div><div><br></div><div>See this is valid on sqlite= 3:</div><div><br></div><div><div>sqlite> create table bar(abc varchar(10= ));</div><div>sqlite> insert into bar values('hi');</div><div>sq= lite> SELECT foo.abc FROM (select abc from bar) foo;</div><div>hi</div><= /div><div><br></div><div>Seems like that syntax was not handled by the pars= er.y lemon file. So I have a patch for it:=C2=A0</div><div><a href=3D"https= ://github.com/arthurnn/libgda/commit/0ba0e8f49f90304256e4fca637928d8cad55a1= e0" target=3D"_blank">https://github.com/arthurnn/libgda/commit/0ba0e8f49f9= 0304256e4fca637928d8cad55a1e0</a></div><div><br></div><div>Let me know what= is the proper way to contribute to this library, if sending a Pull Request= on GitHub, or sending a .patch file on the mailing list.</div><div><br></d= iv><div>Let me know if this makes sense</div><div><br></div><div>Thanks a l= ot</div><div><br></div><div><br></div></div></div> <br>_______________________________________________<br> gnome-db-list mailing list<br> <a href=3D"mailto:[email protected]">[email protected]</a><br> <a href=3D"https://mail.gnome.org/mailman/listinfo/gnome-db-list" rel=3D"no= referrer" target=3D"_blank">https://mail.gnome.org/mailman/listinfo/gnome-d= b-list</a><br> <br></blockquote></div> --001a11488a78d3a2de052ae64098-- --===============8345096694527191389== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnome-db-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-db-list --===============8345096694527191389==--