bigpresh / Dancer-Plugin-Database

Dancer::Plugin::Database - easy database support for Dancer applications
http://search.cpan.org/dist/Dancer-Plugin-Database
37 stars 36 forks source link

Dancer2::Plugin::Database- dbih_getcom handle Dancer::Plugin::Database::Core::Handle=HASH(0x37e7ca8) is not a DBI handle (has no magic) #91

Closed 357r4bd closed 7 years ago

357r4bd commented 7 years ago

I have a basic use case where I am getting the handle and using it directly to call DBI methods direct; on every use, starman is spewing the following; while it works it is annoying and I can't seem to figure out if it is something I am doing wrong or the plugin itself.

SV = RV(0x37e7d30) at 0x37e7d20 REFCNT = 1 FLAGS = (ROK,READONLY) RV = 0x37e7ca8 SV = PVHV(0x37649e0) at 0x37e7ca8 REFCNT = 1 FLAGS = (OBJECT,SHAREKEYS) STASH = 0x21a9de8 "Dancer::Plugin::Database::Core::Handle" ARRAY = 0x0 KEYS = 0 FILL = 0 MAX = 7 RITER = -1 EITER = 0x0 (in cleanup) dbih_getcom handle Dancer::Plugin::Database::Core::Handle=HASH(0x37e7ca8) is not a DBI handle (has no magic) at (eval 329) line 17. SV = RV(0x3a587c8) at 0x3a587b8 REFCNT = 1 FLAGS = (ROK,READONLY) RV = 0x3a587e8 SV = PVHV(0x3b7ec70) at 0x3a587e8 REFCNT = 1 FLAGS = (OBJECT,SHAREKEYS) STASH = 0x21a9de8 "Dancer::Plugin::Database::Core::Handle" ARRAY = 0x0 KEYS = 0 FILL = 0 MAX = 7 RITER = -1 EITER = 0x0 (in cleanup) dbih_getcom handle Dancer::Plugin::Database::Core::Handle=HASH(0x3a587e8) is not a DBI handle (has no magic) at (eval 329) line 17.

357r4bd commented 7 years ago

Hi, I found the issue. I was storing an object in the session that had a dbh handle as an internal member. Derp.