Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Fix https://github.com/forcedotcom/phoenix/issues/577 "DatabaseMetaData ... #583

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julianhyde
Copy link

...column name searches should be case sensitive" and #568 "Ensure that the SQL generated for PhoenixDatabaseMetaData.getColumns doesn't allow SQL-injection"

…case sensitive" and forcedotcom#568 "Ensure that the SQL generated for PhoenixDatabaseMetaData.getColumns doesn't allow SQL-injection"
buf.append(" and " + TABLE_NAME_NAME + " like '" + SchemaUtil.normalizeIdentifier(tableNamePattern) + "'" );
}
pattern(buf, TABLE_SCHEM_NAME, schemaPattern);
pattern2(buf, TABLE_NAME_NAME, tableNamePattern);
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, @julianhyde. Would you mind adding a couple of unit tests to QueryDatabaseMetaDataTest so we make sure we don't regress on these improvements?

Copy link
Author

Choose a reason for hiding this comment

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

Will do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants