[HACKERS] Convert stmt back into queryString

2009-08-04 Thread Dan Colish
I am currently trying to convert an insertstmt back into a const char *queryString, but I can't find an existing function to do this for the life of me. I will write one if none exits, but I figured I ask here first. Unfortunately, nodeToString is not quite right

Re: [HACKERS] Convert stmt back into queryString

2009-08-04 Thread Tom Lane
Dan Colish d...@unencrypted.org writes: I am currently trying to convert an insertstmt back into a const char *queryString, but I can't find an existing function to do this for the life of me. I will write one if none exits, but I figured I ask here first.

Re: [HACKERS] Convert stmt back into queryString

2009-08-04 Thread Dan Colish
On Tue, Aug 04, 2009 at 10:00:24PM -0400, Tom Lane wrote: Dan Colish d...@unencrypted.org writes: I am currently trying to convert an insertstmt back into a const char *queryString, but I can't find an existing function to do this for the life of me. I will write one if none

Re: [HACKERS] Convert stmt back into queryString

2009-08-04 Thread Tom Lane
Dan Colish d...@unencrypted.org writes: On Tue, Aug 04, 2009 at 10:00:24PM -0400, Tom Lane wrote: Hmm, you mean a Query, or a raw unanalyzed InsertStmt? In this case, its a raw InsertStmt. I would like to pass this back to parse_analyze, but I need to have a queryString to go with that call,

Re: [HACKERS] Convert stmt back into queryString

2009-08-04 Thread Dan Colish
On Tue, Aug 04, 2009 at 10:55:07PM -0400, Tom Lane wrote: Dan Colish d...@unencrypted.org writes: On Tue, Aug 04, 2009 at 10:00:24PM -0400, Tom Lane wrote: Hmm, you mean a Query, or a raw unanalyzed InsertStmt? In this case, its a raw InsertStmt. I would like to pass this back to