home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
db_binding
< prev
next >
Wrap
Text File
|
1996-05-31
|
2KB
|
61 lines
#---------------------------------------------------------------------------
#
# Copyright (c) 1995 by Cadre Technologies Inc.
#
# This software is furnished under a license and may be used only in
# accordance with the terms of such license and with the inclusion of
# the above copyright notice. This software or any other copies thereof
# may not be provided or otherwise made available to any other person.
# No title to and ownership of the software is hereby transferred.
#
# The information in this software is subject to change without notice
# and should not be construed as a commitment by Cadre Technologies Inc.
#
#---------------------------------------------------------------------------
#
# File : @(#)db_binding 1.3
# Original date : December 8th, 1995
# Description : Mappings from dynamic SQL to C++
#
#---------------------------------------------------------------------------
#
# @(#)db_binding 1.3\t19 Dec 1995 Copyright (c) 1993-1995 by Cadre Technologies Inc.
#
#---------------------------------------------------------------------------
# standard type | SQL binding | Format String
# | SQL -> C++ conversion | C++ -> SQL conversion
#---------------------------------------------------------------------------
binary[] | BINARYBIND | '%s'
varbinary[] | VARBINARYBIND | '%s'
character | CHARBIND | '%c'
char[] | NTBSTRINGBIND | '%s'
char | CHARBIND | '%c'
varchar[] | NTBSTRINGBIND | '%s'
char | CHARBIND | '%c'
datetime | NTBSTRINGBIND | '%s'
smalldatetime | NTBSTRINGBIND | '%s'
decimal | DECIMALBIND | %f
numeric | NUMERICBIND | %f
dec | DECIMALBIND | %f
double_precision | FLT8BIND | %f
double | FLT8BIND | %f
float | FLT4BIND | %f
real | FLT4BIND | %f
int | INTBIND | %d
integer | INTBIND | %d
serial | INTBIND | %d
smallint | SMALLBIND | %d
money | DECIMALBIND | %f
smallmoney | DECIMALBIND | %f
bit | SMALLBIND | %d
timestamp | INTBIND | %d
text | NTBSTRINGBIND | '%s'
image | BINARYBIND | '%s'
#
# Some none standard types, used by the generator
#
FLAG_T | INTBIND | %d
notype | INTBIND | %d
class_type | NTBSTRINGBIND | '%s'
object_id | INTBIND | %d