Skip to content

ibmdb2 queries rework#1550

Merged
Artuomka merged 2 commits intomainfrom
backend_security_report
Feb 2, 2026
Merged

ibmdb2 queries rework#1550
Artuomka merged 2 commits intomainfrom
backend_security_report

Conversation

@Artuomka
Copy link
Collaborator

@Artuomka Artuomka commented Feb 2, 2026

No description provided.

- Updated SQL query construction to use template literals consistently.
- Enhanced error handling and validation for input parameters.
- Streamlined the process of handling JSON columns during row insertion.
Copilot AI review requested due to automatic review settings February 2, 2026 12:43
@Artuomka Artuomka enabled auto-merge February 2, 2026 12:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors parts of the Oracle and IBM DB2 data access objects to harden SQL query construction, especially around search and autocomplete, and aligns formatting with the project’s style.

Changes:

  • Oracle DAO: refines getRowsFromTable autocomplete logic to validate column names against table structure and switches the raw SQL to fully parameterized LIKE clauses.
  • IBM DB2 DAO: reworks getRowsFromTable (and related query-building code) to use parameterized queries for search, filtering, and autocomplete, and adds validation for autocomplete, filter, and ordering fields.
  • Both DAOs: apply consistent indentation/style and minor cleanups without functional changes in other methods.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
shared-code/src/data-access-layer/data-access-objects/data-access-object-oracle.ts Updates Oracle DAO autocomplete query to validate column names against the table’s structure and use bound parameters for LIKE filters; otherwise mostly formatting and structural reindent without behavior changes.
shared-code/src/data-access-layer/data-access-objects/data-access-object-ibmdb2.ts Reworks IBM DB2 DAO query construction (search, filters, autocomplete, ordering) to be parameterized and validated, reducing injection risk and fixing composition of WHERE/AND clauses, plus consistent formatting across the file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Artuomka Artuomka merged commit 420ee85 into main Feb 2, 2026
25 checks passed
@Artuomka Artuomka deleted the backend_security_report branch February 2, 2026 12:51
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.

1 participant