Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300557

Huge integer on views pager LIMIT causes mysql error

$
0
0

Problem/Motivation

When tampering with the page parameter for a view and setting it to a huge size, a mysql error occurs:

Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-6446744073709551616' at line 3: SELECT ...

e.g. http://example.com/myview?page=1e18

Proposed resolution

Add an integer limit on the LIMIT parameter.


Viewing all articles
Browse latest Browse all 300557

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>