<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Locale PL - problem z wyswietlaniem wartosci walutowych w pgAdmin]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=174&amp;type=atom"/>
	<updated>2009-10-04T17:53:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=174</id>
		<entry>
			<title type="html"><![CDATA[Odp: Locale PL - problem z wyswietlaniem wartosci walutowych w pgAdmin]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1358#p1358"/>
			<content type="html"><![CDATA[[quote=rski]Jaką masz wersję pgadmina?[/quote]
Witam,

Dawno mnie tu nie bylo ale problem wciaz ten sam. Wersja to: 1.8.4 (Mar 13 2009 rev: 7358)

Pewnie powinienem zrobic upgrade bazy. Niemniej poza samym upgradem bede wdzieczny za informacje.

Pozdrawiam
MagEllan]]></content>
			<author>
				<name><![CDATA[MagEllan]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=874</uri>
			</author>
			<updated>2009-10-04T17:53:44Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1358#p1358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Locale PL - problem z wyswietlaniem wartosci walutowych w pgAdmin]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=702#p702"/>
			<content type="html"><![CDATA[Jaką masz wersję pgadmina?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-04-10T07:47:29Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=702#p702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Locale PL - problem z wyswietlaniem wartosci walutowych w pgAdmin]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=692#p692"/>
			<content type="html"><![CDATA[Witam,

Otoz moj problem jest nastepujacy: dla tabeli w ktorej jedna z kolumn przechowuje wartosc typu: money, nie widze wprowadzonych wartosci w pgAdmin.

PostgreSQL 8.3.7
Windows Vista Home Premium SP1 (US) z ustawieniami regionalnymi PL.

fragment postgresql.conf:
[code]
# - Locale and Formatting -

datestyle = 'iso, ymd'

# These settings are initialized by initdb, but they can be changed.
lc_messages = 'Polish_Poland.1250'            # locale for system error message
                    # strings
lc_monetary = 'Polish_Poland.1250'            # locale for monetary formatting
lc_numeric = 'Polish_Poland.1250'            # locale for number formatting
lc_time = 'Polish_Poland.1250'                # locale for time formatting

# default configuration for text search
default_text_search_config = 'pg_catalog.simple'

[/code]

tabela ktora stworzylem zeby powalczyc z tym problemem sklada sie z id [typ serial], value_number [typ numeric(12,2)], value_money [typ money] i currency [typ char(3) domyslna wartosc 'PLN']

Rezultat jest nastepujacy:
pgAdmin III  - w okienku SQL wydaje nastepujace kwerendy:

[code]
insert into store.temp (value_number, value_money) values ('5000.00','2000,00');
[/code]

zaakceptowana dodano jeden wiersz

[code]
select * from store.temp;
[/code]

wyswietla tabele z jedym wierszem ale kolumna value_money jest pusta :(

Dla sprawdzenia uruchomilem psql i kazalem mu wyswietlic tabele:

[code]

test=# select * from store.temp;
 id | value_number | value_money | currency
----+--------------+--------------+----------
  1 |     5000.00 |   z2000,00 | PLN
(1 row)
[/code]

Tak wiec dane sa w tabeli to ze w psql zle wyswietla zł to wina tego ze mam CP 850 a 1250 ale z tym moge zyc ;)

Czy ktos ma jakis pomysl co moze byc nie tak??

z gory dzieki za pomoc.

_____________
Pozdrawiam
MagEllan]]></content>
			<author>
				<name><![CDATA[MagEllan]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=874</uri>
			</author>
			<updated>2009-04-05T14:33:25Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=692#p692</id>
		</entry>
</feed>
