Subject | Rép. : [firebird-support] Re: Newbie: Setting the Date format |
---|---|
Author | cdb4w |
Post date | 2003-10-09T11:45:47Z |
Hi Svein,
Answers inline.....
--- In firebird-support@yahoogroups.com, "Svein Erling"
<svein.erling.tysvaer@k...> wrote:
know is the data type of a particular field. I have already started
making the changes to determine this. Once known I can then convert
the value of any field into any format I want. This will resolve my
problem and will also make things more flexible for future expansion.
can know the date format. However, there should be a mechansim to
allow the Client to set the Date format for a particular session or
at the very worst case per SQL statement so that the server and
client are talking the same language. The actual storage format of
the date is irrelevant.
The actual problem is to retain the same interface for external
applications so that I can change databases without the need for a
single line of code to change in the application. In other words I
need to be fully backwards compatible.
Leslie.
Answers inline.....
--- In firebird-support@yahoogroups.com, "Svein Erling"
<svein.erling.tysvaer@k...> wrote:
> Hi again, Leslie!The middleware knows it is an SQL database, what it doesn't currently
> You may have to make your middleware aware of what type of data it
> is dealing with. After preparing your SQL statement, whatever tool
> you use to access Firebird ought to know the type of its
> parameters.
know is the data type of a particular field. I have already started
making the changes to determine this. Once known I can then convert
the value of any field into any format I want. This will resolve my
problem and will also make things more flexible for future expansion.
> I do think that the date format belongs to the client and not theI have no problem with what you are saying because only the Client
> server, and that allowing this to be set at the database level
> could cause as many problems as it solves.
can know the date format. However, there should be a mechansim to
allow the Client to set the Date format for a particular session or
at the very worst case per SQL statement so that the server and
client are talking the same language. The actual storage format of
the date is irrelevant.
>Agreed. Internally they are not being treated entirely different.
> By the way, Firebird is way different from any desktop database
> like Paradox and treating them as equals you will get a few
> surprises positively and negatively).
The actual problem is to retain the same interface for external
applications so that I can change databases without the need for a
single line of code to change in the application. In other words I
need to be fully backwards compatible.
Leslie.