Skip to content

FwdSqlQuery: Add FwdSqlQuery::bindValue(const QString&, int|uint|...) overload to resolve conflicts - #16868

Open
cr7pt0gr4ph7 wants to merge 1 commit into
mixxxdj:mainfrom
cr7pt0gr4ph7:rtm_fwdsqlquery_fixoverload
Open

FwdSqlQuery: Add FwdSqlQuery::bindValue(const QString&, int|uint|...) overload to resolve conflicts#16868
cr7pt0gr4ph7 wants to merge 1 commit into
mixxxdj:mainfrom
cr7pt0gr4ph7:rtm_fwdsqlquery_fixoverload

Conversation

@cr7pt0gr4ph7

@cr7pt0gr4ph7 cr7pt0gr4ph7 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

This prevents e.g. pQuery->bindValue(":position", 1) from causing a compile-time error, as the compiler cannot decide between QVariant(int) and DbId(int) (even though the latter is deleted).

I discovered this while trying to change some uses of QSqlQuery to FwdSqlQuery.

@cr7pt0gr4ph7
cr7pt0gr4ph7 marked this pull request as ready for review August 10, 2026 16:12
@cr7pt0gr4ph7
cr7pt0gr4ph7 force-pushed the rtm_fwdsqlquery_fixoverload branch from 5bdcfd5 to 8f07135 Compare August 10, 2026 16:30
@cr7pt0gr4ph7 cr7pt0gr4ph7 changed the title FwdSqlQuery: Add FwdSqlQuery::bindValue(const QString&, int) overload to resolve conflicts FwdSqlQuery: Add FwdSqlQuery::bindValue(const QString&, int|uint|...) overload to resolve conflicts Aug 10, 2026
…esolution conflicts

This prevents e.g. pQuery->bindValue(":position", 1) from causing
a compile-time error, as the compiler cannot decide between QVariant(int)
and DbId(int) (even though the latter is deleted).
@cr7pt0gr4ph7
cr7pt0gr4ph7 force-pushed the rtm_fwdsqlquery_fixoverload branch from 8f07135 to 4749234 Compare August 10, 2026 17:08
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