SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "NULL" LINE 6: ...data.status = '1') AND (content_lock.timestamp <> 'NULL') AN... ^: SELECT content_lock.timestamp AS content_lock_timestamp, content_lock.entity_id AS content_lock_entity_id, node_field_data.created AS node_field_data_created, node_field_data.nid AS nid, users_field_data_content_lock.uid AS users_field_data_content_lock_uid, 'contenu_verouille:page_1' AS view_name FROM {node_field_data} node_field_data LEFT JOIN {content_lock} content_lock ON node_field_data.nid = content_lock.entity_id AND content_lock.entity_type = :views_join_condition_0 LEFT JOIN {users_field_data} users_field_data_content_lock ON content_lock.uid = users_field_data_content_lock.uid WHERE (node_field_data.status = :db_condition_placeholder_1) AND (content_lock.timestamp <> :db_condition_placeholder_2) AND (content_lock.timestamp IS NOT NULL) ORDER BY node_field_data_created DESC NULLS LAST LIMIT 26 OFFSET 0; Array ( [:db_condition_placeholder_1] => 1 [:db_condition_placeholder_2] => NULL [:views_join_condition_0] => node )
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff-3-5.txt | 3.77 KB | kfritsche |
| #5 | ContentLockFilter-2936170-5.patch | 3.75 KB | kfritsche |
| #4 | ContentLockFilter-2936170-3.patch | 873 bytes | Jaber ME |
Comments
Comment #2
Jaber ME commentedI added a patch to correct the error on the view, the problem is on the filter timestamp value, it must be equal or different to 0.
Comment #4
Jaber ME commentedComment #5
kfritscheNitepicking
Formatting is wrong, Drupal uses Spaces not Tabs.
Also I tested this patch on mysql (when googling for this error it seems like it is a postge specific error (?)) and it works.
But there were some other issues with the view on 8.x-1.x which I needed to fix first.
Comment #7
chr.fritschThanks for your contribution
Comment #8
Jaber ME commentedThanks @Chr.Fritsch.
Comment #9
Jaber ME commented