Article View: borland.public.interbase.sql
Article #11258Variant types for Interbase data types
From: Edward Diener
Date: Sun, 01 Dec 2002 18:10
Date: Sun, 01 Dec 2002 18:10
11 lines
1664 bytes
1664 bytes
What are the equivalent variant types for the Interbase data types ? Some of these I can guess, particular the numeric, float, and character, but how are the DATE, TIME, and TIMESTAMP stored in Variants and what are the equivalent Variant types ? I want to take a Variant value and use its output streaming ability to create values for an SQL INSERT or UPDATE statement. As far as I can see this will work properly for INTEGER, SMALLINT, FLOAT, DOUBLE PRECISION, NUMERIC, DECIMAL, CHAR, and VARCHAR but I do not think it will work for the DATE, TIME, and TIMESTAMP values without using low-level isc_ functions that convert these values in Variants to a form which SQL recognizes.
Technical Details
Message-ID:
<3dea4ff3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a0e,4b82b358170a5247,start X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-01 10:09:07 PST From: "Edward Diener" <eddielee@tropicsoft.com> Newsgroups: borland.public.interbase.sql Subject: Variant types for Interbase data types Date: Sun, 1 Dec 2002 13:10:35 -0500 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 216.175.67.251 Message-ID: <3dea4ff3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038766067 216.175.67.251 (1 Dec 2002 10:07:47 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail