Closed (won't fix)
Project:
Panels
Version:
5.x-2.0-beta5
Component:
Views panes
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jun 2008 at 07:59 UTC
Updated:
11 Mar 2010 at 23:32 UTC
When trying to create a Views Panes, this error is displayed
warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "panels_views_pvid_seq" does not exist in F:\webs\empresas\includes\database.pgsql.inc on line 125.
.....
.....
Comments
Comment #1
mrlovecraft commentedPartly solved by executing this sql sentences at postgresql:
And changing the sequence owner: (somenthing like this)
ALTER SEQUENCE panels_views_pvid_seq OWNED BY prueba;Two other warnings appeared:
Comment #2
mrlovecraft commentedThe second problem can be solved modifying 'panels_views.module' at line 1109
Change this:
'offset' => array(to this:
'"offset"' => array(So, from my point of view, these two issues are solved. Only need to be added to the source code.
Comment #3
sdboyer commentedFirst, http://drupal.org/patch please.
More importantly, though, what version are you using? To the best of my knowledge, this was fixed across these commits:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/panels/pane...
That means you shouldn't be encountering the issue, unless you're using beta3 or earlier for some reason.
Comment #4
sunYes, this has been fixed already.
Comment #5
Gijs commentedStrangely, these bugs are still alive. I downloaded 5.x-2.0-beta5 earlier this week and at least this bit of code
'offset' = array(has not been corrected into
'"offset"' = array(I get both errors mrlovecraft is reporting on a Debian testing system using postgresql 8.3.3-1 and the latest drupal 5
Comment #6
smk-ka commentedConfirming this bug still exists. The complete error message has never been posted:
The two issues are:
1. The PostgreSQL part of Drupal differs from the MySQL part in that it does not use the sequence table, but relies on SERIAL columns (the Postgres equivalent to auto_increment). This requires some work on Panels' poorman schema code -or- a nasty hack to execute the CREATE SEQUENCE code mrlovecraft posted in #1.
2. We're currently escaping the column name 'offset' during installation but not in the actual queries.
Comment #7
sdboyer commentedOh..bloody hell. OK, I'll get to fixing this as soon as I can for RC1.
Comment #8
esmerel commentedNo changes to be made to 2.x code