Yes, views should be indistinguishable from tables for that query.
Can you actually query the view (rather than just the database in general)?
An error code of -1 is not strongly indicative of anything specific as a problem. It can sometimes be 'no permission', but it could be almost anything.
I suggest looking to see where the problem is by using DBI_TRACE=9 (or maybe smaller numbers) set in the environment (or use $dbh->trace(9)
). This should give you lots of information (not all of it comprehensible) about what is going on; it may show you where the trouble actually is.