Data Types
I'm working with a data dictionary and no have problems until now. In my
tables(Interbase 6), numeric fields are defined how Decimal and in data
dictionary I connect decimal fields with dtLongInt type.
The problem is : If SQL query in report is edited, that fields turn to
string type.
Why this problem occurs?
tables(Interbase 6), numeric fields are defined how Decimal and in data
dictionary I connect decimal fields with dtLongInt type.
The problem is : If SQL query in report is edited, that fields turn to
string type.
Why this problem occurs?
This discussion has been closed.
Comments
as dtSingle or dtDouble floating point types.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I think that result dataset taken the fields datatype from table directly.
I'll wait a answer
Thanks
"Alexander Kramnik (Digital Metaphors)"
answer to your question is no, the data dictionary is not useful if you plan
on editing the SQL manually.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
field its become in string field size 2.
If the data type in table is integer then the field remains normal.
Why the decimal fields becomes in string fields?
"Alexander Kramnik (Digital Metaphors)"
determining data types. Instead, the query is submitted to the database (in
this case IB 6) and the data types of the resulting TDataSet are checked. It
must be that Interbase is converting these fields to string for some reason
or that some new data type is being returned which is not anticipated by RB.
In order to determine what is really going on - copy the SQL statement from
DADE into a TIBQuery and make the query active. Double click the query
component and add all fields. Select the field in question and see what data
type is shown in the Object Inspector. This will tell us whether the data
type is a string, or if RB is simply missing on the conversion of an
unexpected data type...
Cheers,
Tom Ollar
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
Maybe RB really missing on the conversion of an unexpected data type, what
you thing?
I'm using dbexpress and the field is decimal (12,3)
address this. Please email support@digital-metaphors.com to request it.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com