Can't work out what is wrong with this code

Поиск
Список
Период
Сортировка
От Simon Connah
Тема Can't work out what is wrong with this code
Дата
Msg-id 5RtDKcDlGNlakqqw7RBiZueSkBmFuloOmz5p5L0twUfpsq1RHAYyLkhQTCdeuf-WiXRQPmHyiO4_jM-vlQUgQi-pZPrrx3DQeOZinLmd6s4=@protonmail.com
обсуждение исходный текст
Список pgsql-novice
Hi,

I'm trying to return a row from a table and I'm having a tough time working out how to do it.

Here is my code:

https://gist.github.com/simonconnah/86f4a8ecb41f9ea3a4c759e5eba5c850

When I try and call the get_blog function in JavaScript I just get undefined which is not very helpful. Can someone
pointme in the right direction please? 

Simon.


Вложения

В списке pgsql-novice по дате отправления:

Предыдущее
От: Simon Connah
Дата:
Сообщение: Re: Return a table from a function
Следующее
От: "Steve Tucknott (TuSol)"
Дата:
Сообщение: Advice on foreign key and cascading delete design - postgresql 12.6