Subject | Re: [firebird-support] Bug with character sets |
---|---|
Author | Kjell Rilbe |
Post date | 2009-05-20T10:47:14Z |
Vlad Khorsun wrote:
include fibplus etc.
1. It requires an extra round-trip to the server, including execution of
an additional SQL query. So for each query you have to execute another
query just to be able to read the data from the first query correctly.
2. It is not intuitive that the data returned from a query is not "self
contained" but requires me to get other info "myself" to be able to read
it correctly. Especially bad since the "problem" is very subtle and far
from obvious until you stand there confused wondering why all your
expected fixed-length data appear to be padded in a seemingly random manner.
any exceptions that result. So, yes, it is very complex in comparison.
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> > While the application *can* get N by querying the charset system table,With "application" I meant "everything above fbclient", so it would
>
> Why application ? It is job of data access layer\components.
include fibplus etc.
> > it is a rather complicated taskYes:
>
> Really ???
1. It requires an extra round-trip to the server, including execution of
an additional SQL query. So for each query you have to execute another
query just to be able to read the data from the first query correctly.
2. It is not intuitive that the data returned from a query is not "self
contained" but requires me to get other info "myself" to be able to read
it correctly. Especially bad since the "problem" is very subtle and far
from obvious until you stand there confused wondering why all your
expected fixed-length data appear to be padded in a seemingly random manner.
> > and also not very intuitive that it is required.Most application don't query for that. They just pass data and handle
>
> Do you consider "too complex and not very intuitive" for data access layer
> to query system tables for fileds CHECK constraints, DEFAULT values, etc ?
any exceptions that result. So, yes, it is very complex in comparison.
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64