Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2016

Conversation

superqtqt
Copy link

… 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
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