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
However, the replacement package, engine/dolphin, fails to generate the correct code. Note that it does find the parameter in the WHERE clause, but assigns it the wrong type. I need to add support for function return types. Here's what it currently spits out:
CREATETABLEconversions (
body text,
archived_at datetime NOT NULL DEFAULT NOW(),
created_at datetime NOT NULL DEFAULT NOW()
);
/* name: GetConversions :many */SELECT*FROM conversions
WHERE isnull(archived_at) = ?
ORDER BY created_at DESCLIMIT25;
Activity
kyleconroy commentedon Jul 28, 2020
The mysql package is deprecated (#633)
However, the replacement package, engine/dolphin, fails to generate the correct code. Note that it does find the parameter in the WHERE clause, but assigns it the wrong type. I need to add support for function return types. Here's what it currently spits out:
{ "version": "1", "packages": [ { "engine": "_dolphin", "path": "go", "name": "querytest", "schema": "query.sql", "queries": "query.sql" } ] }kyleconroy commentedon Oct 26, 2020
Here's a reproduction of the issue on the playground.
kyleconroy commentedon Oct 26, 2020
Closed in favor of #657
dolphin: Add ISNULL function signature
dolphin: Add ISNULL function signature
dolphin: Add ISNULL function signature
dolphin: Add ISNULL function signature
dolphin: Add function signatures (#796)