Skip to content

#modify net.sf.jsqlparser.statement.insert.Insert Method:toString()…#325

Merged
wumpz merged 1 commit intoJSQLParser:masterfrom
superqtqt:master
Aug 18, 2016
Merged

#modify net.sf.jsqlparser.statement.insert.Insert Method:toString()…#325
wumpz merged 1 commit intoJSQLParser:masterfrom
superqtqt:master

Conversation

@superqtqt
Copy link
Copy Markdown

… if itemsList and useSelectBrackets together not null will error

modify PlainSelect.getStringList change sql append to StringBuilder

…f itemsList and useSelectBrackets together not null will error

#modify PlainSelect.getStringList change sql append to StringBuilder

for (int i = 0; i < list.size(); i++) {
ans += "" + list.get(i) + ((i < list.size() - 1) ? comma + " " : "");
ans.append(list.get(i)).append(((i < list.size() - 1) ? comma + " " : ""));
Copy link
Copy Markdown
Member

@wumpz wumpz Aug 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To construct valid comma lists the constructs are nearly always weird :). You could use a commalist generator method within Plainselect. Nevertheless it was not your statement but the older one I am refering to.

@wumpz wumpz merged commit 696f34d into JSQLParser:master Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants