You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any query i try to generate where a random() function is contained fails to be found and generated. And on a side note, the sqlc playground throws an 500 error response when the version is higher than 1.25.
Relevant log output
# package
query.sql:3:8: functionrandom(unknown, unknown) does not exist
Database schema
CREATETABLEfoo (
id BIGSERIALPRIMARY KEY,
value intnot null
);
SQL queries
-- name: InsertBarV0 :execinsert into foo(value)
SELECT random(-100000, -30000);
-- name: InsertBarV1 :execinsert into foo(value)
SELECT random(-100000, -30000)
from generate_series(sqlc.arg('intervalStart')::timestamptz, sqlc.arg('intervalEnd')::timestamptz,
sqlc.arg('interval')) g
cross join generate_series(0, sqlc.arg('multiplier')::int) gg;
Version
1.28.0
What happened?
Any query i try to generate where a random() function is contained fails to be found and generated. And on a side note, the sqlc playground throws an 500 error response when the version is higher than 1.25.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/a2c60ef18b2a8453b0aa6c35c2f9dc6ec903385532362e2bb777d5fd892af60d
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: