Built and run by one person.
Getting Errors Running SQL Against the Tigzig Cricket Database? The Most Common Failure Is the URL, Not Your SQL.

Getting Errors Running SQL Against the Tigzig Cricket Database? The Most Common Failure Is the URL, Not Your SQL.

Published: August 17, 2026

Are you running SQL against the Tigzig cricket database? Getting errors? The most common failure has nothing to do with your SQL, it is the URL it travelled in.

You can send a query to us two ways. Inside the URL, which is a GET, or inside a JSON body, which is a POST. If you use the URL, the whole query has to be percent encoded first, and that is the step where it goes wrong. A plus sign inside a URL already means a space, so SUM(runs_off_bat + extras) reaches us with the plus gone. Line breaks can get eaten, so two words end up stuck together. Some clients stop encoding partway and the query arrives cut off. The SQL on your screen is correct, and by the time it gets here it is a different query.

For these URL problems, the error response you get names the cause where it can .... and for the rest it quotes your SQL back exactly as we received it so you can see what changed.

Why am I keeping GET? It is the only thing a plain browser can do, agent driven browsers and no code HTTP nodes use it, and those calls work perfectly well too.

I added those to the docs ...the most common cases and what to send instead. Doc links below, comments have some quick points.

Data from: Cricsheet, published under the Open Data Commons Attribution License 1.0 (ODC-BY).

A few quick points

What it looks like when it goes wrong

If you would rather not think about any of this, send a POST with a JSON body and there is no encoding step to get wrong. Check updated docs below.