-
Notifications
You must be signed in to change notification settings - Fork 14
Adds support for pivot, unpivot and full outer join #195
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
Conversation
…that the projection has already been done
let pivotPart = parts[1]; | ||
let fieldMatch; | ||
if (type === 'pivot') { | ||
fieldMatch = pivotPart.match(/pivot\(\[(.*?)\]/); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High
regular expression
library input
This
regular expression
library input
if (type === 'pivot') { | ||
fieldMatch = pivotPart.match(/pivot\(\[(.*?)\]/); | ||
} else { | ||
fieldMatch = pivotPart.match(/unpivot\((.*?),/); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High
regular expression
library input
This
regular expression
library input
pivotPart = ',' + pivotPart; | ||
} | ||
// Extract the 'for' part | ||
const forMatch = pivotPart.match(/,(.*?),\[/); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High
regular expression
library input
This
regular expression
library input
} | ||
pivotPart = pivotPart.replace(forMatch[0], ''); | ||
// Extract the columns | ||
const columnsMatch = pivotPart.match(/(.*?)\]/); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High
regular expression
library input
This
No description provided.