after importing a view when I click save it gives me error
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'is_cacheable' at row 1:
INSERT INTO {views_view} (name, description, tag, view_php, base_table, is_cacheable) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5);
Array (
[:db_insert_placeholder_0] => calendar_catalog
[:db_insert_placeholder_1] => My Title [:db_insert_placeholder_2] =>
[:db_insert_placeholder_3] =>
[:db_insert_placeholder_4] => node
[:db_insert_placeholder_5] =>
)
in views_db_object->save_row() (line 1632 of /Users/slim/Sites/d7/sites/all/modules/views/includes/view.inc).
Comments
Comment #1
xslim commentedQuick & dirty fix for this - is to add
inside function save_row in file view.inc
Comment #2
xslim commentedComment #3
dagmar@xslim: please respect the Coding Standars.
Comment #4
dawehnerI'm not sure, but this is used nowhere, and i thought earl would like to drop it anyway...
The patch has a codestyle problem, we always use {}
Comment #5
xslim commentedSorry for that, fixed
dereine, what do you mean that it is used nowhere?
Comment #6
dawehneri mean no-where
Comment #7
xslim commentedwell should we remove is_cacheable from all sources?
I can remove it and make a patch if it's ok.
Comment #8
dawehnerI would first like to ask merlinofchaos.
I don't see a reason why it should be in. We have a pluggable cache plugin which allows everything.
Comment #9
xslim commentedThan I'll wait your answer.
Comment #10
dawehnerHe pointed to http://drupal.org/node/635336
First create a patch fo 6.x
Comment #11
merlinofchaos commentedThere's no point in this patch with #635336: Remove unused fields from the view out there.