I get an unexpected integer overflow when i try to update an integerfield of a postgres 8.4 table thats holding a value over 0x3FFFFFFF.
Tested combinations Delphi 7/Zeos6.6.6/Postgresl8.4
Example Code 1: Works
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= 1073741823; // = 0x3FFFFFFF;
zquery1.post;
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= -1073741823; // = 0x3FFFFFFF;
zquery1.post;
Identifier is an integer field of a postgresql 8.4 table
Example Code 2: Fails
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= 1073741824; // = 0x40000000;
zquery1.post;
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= -1073741824; // = -0x40000000;
zquery1.post;
Example Code 3 : Works But is of course no solution
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= 0; ;
zquery1.post;
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= 1073741824; // = 0x40000000;
zquery1.post;
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= 0;
zquery1.post;
zquery1.edit;
zquery1.fieldByName('identifier').asInteger:= -1073741824; // = -0x40000000;;
zquery1.post;
integer overflow exception
In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions
Moderators: gto, EgonHugeist
-
- Fresh Boarder
- Posts: 3
- Joined: 08.09.2005, 09:57
Jump to
- Links
- ↳ Bugtracker
- ↳ Downloads
- ↳ Subversion
- ↳ GitHub
- ZEOS Library - General
- ↳ Announcements
- ↳ Downloads
- ↳ Documentations
- ↳ Tutorials
- ↳ ZDBC (ZEOS Database Connectivity)
- ↳ User Contributions
- ↳ Feature Requests
- ↳ User Patches
- ZEOS DBO v8.x
- ↳ ZeosLib 7.3/8.0 Forum
- ZEOS DBO v7.x
- ↳ ZeosLib 7.2 Forum
- ↳ ZeosLib 7.1 stable Forum
- ↳ ZeosLib 7.0 Stable Forum
- ↳ ZeosLib 7.0 Beta Forum
- SQL Servers and Databases
- ↳ ADO
- ↳ DB2
- ↳ Firebird
- ↳ Interbase
- ↳ MS SQL Server
- ↳ MySQL
- ↳ Oracle
- ↳ OleDB (Microsoft Windows)
- ↳ ODBC
- ↳ PostgreSQL
- ↳ SQLite
- ↳ Sybase ASE
- Compiler related
- ↳ CBuilder / C++
- ↳ Lazarus / Freepascal
- ZEOS DBO V 6.x
- ↳ 6.6 - stable
- ↳ 6.5.1 (alpha) - 6.6.x (beta)
- ↳ 6.1.5
- ↳ Other 6.x Versions
- ↳ Bug Reports
- ZEOS DBO V 5.x
- ↳ 5.x Versions
- Software projects using ZeosLib
- ↳ SQLite Administrator
- Other and Non-Technical
- ↳ Off Topic