<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - dodanie kolumny do tabeli przez procedure]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=196&amp;type=atom"/>
	<updated>2009-04-28T12:31:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=196</id>
		<entry>
			<title type="html"><![CDATA[Odp: dodanie kolumny do tabeli przez procedure]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=778#p778"/>
			<content type="html"><![CDATA[dzieki za pomoc dziala]]></content>
			<author>
				<name><![CDATA[mpzs]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=886</uri>
			</author>
			<updated>2009-04-28T12:31:40Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=778#p778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: dodanie kolumny do tabeli przez procedure]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=777#p777"/>
			<content type="html"><![CDATA[Jak dajesz 
[code]
Returns numeric
[/code]

no to w funkcji przydalaby sie komenda
[code]
return jakas_liczba
[/code]

Musisz mieć ten returns numeric. Nie wystarczy returns void?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-04-28T12:29:49Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=777#p777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[dodanie kolumny do tabeli przez procedure]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=776#p776"/>
			<content type="html"><![CDATA[chce umiescic kolumne w tabeli przez procedure procedura sie wkonuje ale nie moge jej wywolac bo jest blad

CREATE FUNCTION ex22() Returns numeric AS $$ 
begin
ALTER TABLE osoby add wiek numeric(2,0);
end;
$$LANGUAGE 'plpgsql'; 

wywoluje ja w taki sposob

select* from ex22();

ale wyswietla sie taki blad

ERROR:  control reached end of function without RETURN
CONTEXT:  PL/pgSQL function "ex22"

co mam zrobic aby bylo dobrze 
z gory dziekuje za pomoc]]></content>
			<author>
				<name><![CDATA[mpzs]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=886</uri>
			</author>
			<updated>2009-04-28T11:48:28Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=776#p776</id>
		</entry>
</feed>
