Skip to content
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

Possible to use 2 versions of QB in order to compare? #245

Open
JamoCA opened this issue Mar 9, 2023 · 1 comment
Open

Possible to use 2 versions of QB in order to compare? #245

JamoCA opened this issue Mar 9, 2023 · 1 comment

Comments

@JamoCA
Copy link

JamoCA commented Mar 9, 2023

Is it possible to use 2 different versions of QB in a single app to compare functionality? (I've been burned in the past with ColdFusion updates that have returned different results, so I prefer to test as much as possible.)

I'm using QB with ColdFusion 2021 without Coldbox. I was under the impression that I could continue to use a "qb" (for 2016 backwards compatibility) and a separate "qb9" directory for the breaking v9 changes that now require CF2021.

I'm encountering the following error because the QueryBuilder.cfc is attempting to initialize the new SQLCommenter module from the older "/qb" sub-directory.:

Could not find the ColdFusion component or interface qb.models.SQLCommenter.NullSQLCommenter.
Ensure that the name is correct and that the component or interface exists.
@elpete
Copy link
Collaborator

elpete commented May 15, 2023

I believe you'll need to provide paths to the init function of the QueryBuilder that match the mapping you make. In the example you gave you would provide a new qb9.models.SQLCommenter.NullSQLCommenter().

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

No branches or pull requests

2 participants