Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Update AbstractDb.php#34

Closed
andrey-mokhov wants to merge 4 commits intozendframework:masterfrom
andrey-mokhov:patch-1
Closed

Update AbstractDb.php#34
andrey-mokhov wants to merge 4 commits intozendframework:masterfrom
andrey-mokhov:patch-1

Conversation

@andrey-mokhov
Copy link

When RecordExists and NoRecordExists validators are used two and more times, system throws exception:
SQLSTATE[HY093]: Invalid parameter number: :where1

This error is related with creation query string with parameters where2, where3, etc with every calling prepareStatementForSqlObject method.
This solution lets use RecordExists and NoRecordExists validators two and more times.

When RecordExists and NoRecordExists validators are used two and more times, system throws exception:
SQLSTATE[HY093]: Invalid parameter number: :where1

This error is related with creation query string with parameters where2, where3, etc with every calling prepareStatementForSqlObject method.
This solution lets use RecordExists and NoRecordExists validators two and more times.
@Maks3w
Copy link
Member

Maks3w commented Aug 18, 2015

Need a test

Copy link
Member

Choose a reason for hiding this comment

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

change to private

@weierophinney
Copy link
Member

@andrey-mokhov We cannot merge this change without tests; will you have time to implement them?

@weierophinney
Copy link
Member

Closing due to lack of updates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants