Subject Re[3]: [firebird-support] Default value
Author Serg Vostrikov
Dear Helen,

Saturday, February 28, 2004, 12:24:32 AM, you wrote:

>>This is not bad, but why should I define the default values in my
>>application, if they are already defined in a database? :).

HB> The answer to that question is - on a slow connection, why add an extra query?
Because the database defaults can be changed :). This is the same with
FIBPlus Repository. You can store queries and field properties in a
database, and if you need to change them you do not need to rebuild
your application.

Though, frankly speaking, I think with IBO you can create something
like external ini-files and store defaults for connection in these
files. It will enable you to avoid recompilation, but it will require
some additional coding.

HB> Luckily, both IBO and FIBPlus seem to give you both options. If you want
HB> to assign the defaults in the app, in IBO you define them once, at
HB> Connection level -- then all queries use them.
Well, both solutions have advantages and disadvantages. That's as
always :)

HB> TQuery only gives you the
HB> option to define a default for a TField object, which can be agonising.
Absolutely!

--
Sincerely yours,
Serg

Devrace - software for developers!
__________________________________
e-mail: sv@...
url : http://www.devrace.com/, http://www.fibplus.com/,
http://www.athlant.com/, http://www.blazetop.com/