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
createfunctiontest_func_get_time ()
returns timestampAS $$
Begin
return now();
End;
$$ language plpgsql;
createfunctiontest_select_string (in p_string text)
returns textAS $$
Begin
return p_string;
End;
$$ language plpgsql;
createfunctiontest_select_blog(in p_id int)
returns table (id int, name text, created_at timestamp, updated_at timestamp) AS $$
BEGIN RETURN QUERY
select id, name, created_at, updated_at from blog where id = p_id;
END;
$$ language plpgsql;
* test: Add case for #2132
* test: Add case for #2152
* test: Mark case for #2152
* test: Add case for #2187
* test: Add case for #2226
* test: Add case for #2364
* test: Add case for #2386
* test: Add case for #2538
* test: Add case for #2644
* test: Add case for #2731
Version
1.18.0
What happened?
Functions created for Postgres are not generating fields for returned row structs. For example:
I suspect that I'm doing something wrong, but I can't seem to figure this out. Any help would be greatly appreciated. Thank you in advance.
Relevant log output
Database schema
SQL queries
Configuration
No response
Playground URL
https://play.sqlc.dev/p/f91c263ba2690afce4165f4febce483987995c3ba53e96a8f40bcd7e0af5fbc8
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: