Skip to content

Conversation

@ejgandelaberon
Copy link
Contributor

This is a bug fix to this recently merged PR: #3227

QueryDataTable::getTablePrefix() returns string or null. It causes an issue to QueryDataTable::addTablePrefix() method where in it returns a column name with a null/empty prefix (.column_name) instead of (prefix.column_name).

I added a guard clause to check if the table prefix returned by QueryDataTable::getTablePrefix() is not null/empty string before prefixing it to the column.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 7, 2025

@yajra yajra merged commit b6771b3 into yajra:master May 7, 2025
7 checks passed
@yajra
Copy link
Owner

yajra commented May 7, 2025

@Seb33300
Copy link
Contributor

Seb33300 commented May 7, 2025

Right I forgot this one.

In other places I fixed using ltrim(..., '.')

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.

4 participants