adambinnersley/pdo-dbal

values is persistent sometimes

zbee opened this issue · 1 comments

zbee commented

I am trying to write a project using pdo-dbal, however when I make more than one query in a call using the MemcacheCache wrapper I am getting persistence in the values class variable.

See below. The first entry is the first query on the page, the second query is the next. The second query still contains the first query's values despite not being passed in. The second image shows the second query's dbal call.

image

image

I tried changing the first call's synonymous column of id to lobbyID thinking it was being cached that way, but this did not fix anything.

I can fix this by making values public, and setting it to [] just like what \DBAL\Database\executeQuery() tries to do, but somehow fails in doing so; I can also fix it by clearing values as the first action in \DBAL\Database\select(), see below.

image

I tried removing the unset() calls, and I tried moving values = [] to right after the bind, but neither of those solved the issue, only clearing values from outside the class.

If I could get xdebug working I could try to narrow it down further, but I guess that isn't happening.

I have just released a new version that should resolve this issue