GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Missing sqlc.arg in SQL UPDATE query with EXISTS subquery · Issue #4512 · sqlc-dev/sqlc Open Labels bugSomething isn't workingSomething isn't working DescriptionVersion1.31.1 What happened?When running sqlc 1.31.1 with Expectation: Actual output: Relevant log output-- no output -- Database schemaCREATE TABLE target_table ( id BIGINT PRIMARY KEY, active BOOLEAN NOT NULL ); CREATE TABLE source_table ( id BIGINT PRIMARY KEY, updated_at TIMESTAMP NOT NULL ); SQL queries-- name: UpdateEntities :execrows UPDATE target_table SET active = 0 WHERE NOT ( EXISTS ( SELECT 1 FROM source_table s WHERE s.updated_at >= sqlc.arg(updated_after) ) ); Configuration{ "version": "2", "sql": [{ "schema": "schema.sql", "queries": "query.sql", "engine": "mysql", "gen": { "go": { "out": "db" } } }] } Playground URLhttps://play.sqlc.dev/p/29743a26dc241fe38660c6a2c7d7fb37505e1cecb4251f6f0876a14747efb431 What operating system are you using?macOS What database engines are you using?MySQL What type of code are you generating?Go Edit: Make the problem more clear, by adding expectation/ reality Reacted by pavhl Activity
MetadataMetadataAssigneesLabelsbugSomething isn't workingSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |