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
CREATETABLEIF NOT EXISTS wallets
(
id uuid NOT NULL DEFAULT uuid_generate_v4() PRIMARY KEY,
address VARCHAR(44) NOT NULL,
type VARCHAR(44) NOT NULL,
balance DECIMAL(32, 18) NULL
);
SQL queries
-- name: FindWallets :manyselect id, address, balance, total_balance from
(
select id, address, balance,
sum(balance) over (order by balance desc rows between unbounded preceding and current row) as total_balance,
sum(balance) over (order by balance desc rows between unbounded preceding and current row) - balance as last_balance
from wallets
where type=$1
) amounts
whereamounts.last_balance< $2;
* fix(compiler): Pull in array information from analyzer
Fixes#1532
* test(analyzer): Add testcase for #1574
* test: Added test for #1634
* test: Add test case for #1646
* test: Add test for #1714
* Fixes#1912
* test: Add case for #1916
* test: Add two test cases
#1917#1545
* test: Add case for #1979
* test: Add case for #1990
Version
1.15.0
What happened?
This sql query does not work.
I am getting the following error:
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/3011dd28fdcc2ee1e3c0c02e19f0fae102e794177017135f63500e43ee0910fe
What operating system are you using?
macOS
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: