Skip Menu |

This queue is for tickets about the Alzabo CPAN distribution.

Maintainer(s)' notes

Not really maintained any more. Interested in taking it over? Email the author.

Report information
The Basics
Id: 17942
Status: resolved
Priority: 0/
Queue: Alzabo

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.86
  • 0.87
Fixed in: 0.88



Subject: Postgres driver caches connections even with different credentials
The Postgres driver (and possibly the MySQL one, but I didn't look) only requires that an existing connection respond to a ping() call to continue using it, even when connect() is called repeatedly with different arguments. Not only does this appear to run contrary to the "we don't do caching" blurb in Alzabo::Driver(3pm), but it also can result in broken situations when one uses multiple users with different permissions on the same schema. In a persistent environment, this can happen without the developer even realising it's possible. In my case, I thought I was loading the schema fresh each time, but I was getting a cached copy with a connection already associated.