Re: Logical fields in MySQL, field mapping from VFP to MySQL
From: Christian Ehlscheid (ehlscheid-no-spam_at_edv-ermtraud.de)
Date: 03/17/04
- Next message: Eric den Doop: "Re: Key()"
- Previous message: Mike McDowall: "Key()"
- In reply to: Ook: "Logical fields in MySQL, field mapping from VFP to MySQL"
- Next in thread: Ook: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Reply: Ook: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Mar 2004 11:53:13 +0100
Hello,
there's no real bool in MySQL ..
bool exists but it's a synomym for tinyint(1) which maps to "I" (integer) in
FoxPro
the other types map to vfp types as with every other SQL Server
C = Character
D = Date
M = Memo
I = Integer
B = Double
Y = Currency
T = DateTime
char/ varchar up to 254 -> C(XXX)
char/varchar greater 254 -> M
tinytext/text/mediumtext/longtext -> M
tinyblob/blob/mediumblob/longblob -> M (Binary)
date -> D
datetime -> T
bit -> I
float -> B **
double/real -> B **
decimal/numeric -> Y
timestamp -> not supported
bigint -> not supported ..
** i've tested returning double and float values from mysql with
Sql-Pass-through
the number of decimal places is not correctly propagated from mysql to vfp,
or it's not exchanged at all ..
the number of decimals in the resulting cursor is determined by the current
SET DECIMALS setting .. if it's too small the values are rounded ..- a
cursoradapter with a CursorSchema set seems to better suited to transfer
data of these types
Regards
Christian
"Ook" <outlookexpress@nospam@embertsdotcom> schrieb im Newsbeitrag
news:uCdq5l6CEHA.3280@TK2MSFTNGP09.phx.gbl...
> Is there any support in MySQL for logical fields? I see the BOOL type
field,
> but I'm not sure if the odbc driver will directly map that to a VFP
logical,
> and I'm thinking I should use numeric, 1 or 0, for my logical needs. On
the
> same subject, does anyone have/know of a list of VFP fields and the best
> matches in MySQL?
>
>
- Next message: Eric den Doop: "Re: Key()"
- Previous message: Mike McDowall: "Key()"
- In reply to: Ook: "Logical fields in MySQL, field mapping from VFP to MySQL"
- Next in thread: Ook: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Reply: Ook: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|