-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
We were performing some tests on PostgreSQL and found that it fails on the
following query:
SELECT 512*18014398509 481984 AS result;
and the result is:
result
- ----------------------
-922337203685477 5808
It should be 922337203685477 5808... This is PostgreSQL 7.4.5 on Fedora
Core 2.
We tested the same query on some other database servers:
Oracle 9 ias r2 : 9,2233720368547 8E18
Oracle 9i WinXP, 32 bit : 922337203685477 5808
Oracle 9.2.0.3 on Redhat 9 : 922337203685477 5808
Oracle 9.2.0.3 on Redhat Advanced Server 2.1 : 922337203685477 5808
MS-SQL Server 2000 : 922337203685477 5808
MySQL on Sun Solaris 6 : -922337203685477 5808
MySQL on Red Hat Enterprise Linux 3.0 : -922337203685477 5808
It seems that MySQL and PostgreSQL fails on this query. Is this a bug, or
a lack of something?
.... or is there a limit?
Regards,
- --
Devrim GUNDUZ
devrim~gunduz.o rg devrim.gunduz~l inux.org.tr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFBWmc4tl8 6P3SPfQ4RAliCAJ 9JJA3111mxrcBnn WptI8cTQzdpoQCg sBQV
HMKeNGowkd35BhM wW6kWwbs=
=BWS3
-----END PGP SIGNATURE-----
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
Hash: SHA1
Hi,
We were performing some tests on PostgreSQL and found that it fails on the
following query:
SELECT 512*18014398509 481984 AS result;
and the result is:
result
- ----------------------
-922337203685477 5808
It should be 922337203685477 5808... This is PostgreSQL 7.4.5 on Fedora
Core 2.
We tested the same query on some other database servers:
Oracle 9 ias r2 : 9,2233720368547 8E18
Oracle 9i WinXP, 32 bit : 922337203685477 5808
Oracle 9.2.0.3 on Redhat 9 : 922337203685477 5808
Oracle 9.2.0.3 on Redhat Advanced Server 2.1 : 922337203685477 5808
MS-SQL Server 2000 : 922337203685477 5808
MySQL on Sun Solaris 6 : -922337203685477 5808
MySQL on Red Hat Enterprise Linux 3.0 : -922337203685477 5808
It seems that MySQL and PostgreSQL fails on this query. Is this a bug, or
a lack of something?
.... or is there a limit?
Regards,
- --
Devrim GUNDUZ
devrim~gunduz.o rg devrim.gunduz~l inux.org.tr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFBWmc4tl8 6P3SPfQ4RAliCAJ 9JJA3111mxrcBnn WptI8cTQzdpoQCg sBQV
HMKeNGowkd35BhM wW6kWwbs=
=BWS3
-----END PGP SIGNATURE-----
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
Comment