Hello,
anyone has used UIB (Delphi/Lazarus db tool) with Firebird 4?
At the moment I've no users with Firebird 4.0. But if a user upgrades to Firebird 4 I don't know if the UIB still works, even without using the new features of Firebird 4.
For example, with version 3 of Firebird, an upgrade of the UIB was necessary.
However there are no recent updates for the UIB
(that is still supported from the developers), and Firebird 4
sorted at June 2021.
In the future could happen that a user has already Firebird 4 installed.
Sorry for my bad English.
Thank you and best regards,
Stephanie
Thank you for your reply!
At the moment I don't use
any of the new tipes of Firebird 4, the db must be still
compatible with the previous versions.
The question is, sooner or later a user will have Firebird 4: with Firebird 3, the previous UIB didn't work at all (no connection possibile), even if the db didn't use anything new of the version 3, only with the upgrade of the UIB they worked.
I hope that with UIB and Firebird 4 it's different, I saw this message, that would seems to confirm the compatibility:
CodeTyphon Studio by PilotLogic is based on Lazarus/FPC (CodeTyphon it's substantially a Lazarus installation with many packages installed by default), so the UIB should be the same, I believe.
But if someone has had direct experience with the "official" UIB on Lazarus/FPC this would be very useful to know.
Best regards,
Stephanie
Thank you very much, your
explanation is very clear and very helpful, I hadn't thought
that metadata could use anyway the new datatypes.
So on a FB4 I can set DataTypeCompatibility = 3.0 in both firebird.conf and databases.conf and all should work.
In the next time I will make sure that all users have at least Firebird 2.5.9 or Firebird 3.0.4+, in order to replace CURRENT_TIMESTAMP or CURRENT_TIME with LOCALTIMESTAMP or LOCALTIME, in this way when the UIB will support the new FB4 datatypes the DataTypeCompatibility will be no more necessary.
Thank you again and best regards,
Stephanie
Hello and thanks for your reply, SET BIND is alternative to DataTypeCompatibility settings?
If I have good understand:
1) If I set DataTypeCompatibility = 3.0 in the firebird.conf file this applies to all databases;
2) If I set DataTypeCompatibility = 3.0 in the databases.conf file this applies only to the specified database, for example:
# Directives for MyDb1
MyDb1 = opt/databases/mydb1.fdb
{
DataTypeCompatibility = 3.0
}
# Directives for MyDb2
MyDb2 = opt/databases/mydb2.fdb
{
DataTypeCompatibility = 3.0
}
3) if I use SET BIND via SQL this applies only to the current connection.
Is it right?
Thank you again, best regards,
Stephanie
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/e910686d-c57a-45cf-8546-a19370b748f2n%40googlegroups.com.
Hello Virgo,
thank your for your reply.
I've a very complex project
with many forms and many db components.
Of course I could modify the UIB component in order to automatically make a SET BIND after every connection.
However if I use DataTypeCompatibility = 3.0 in the databases.conf I should resolve easier, as UIB now don't support the new data types, so I believe that I've not other benefit using SET BIND.
When UIB will support FB4, I've only to upgrade UIB and delete the DataTypeCompatibility cause, without changing my code.
Or would I have other benefits using SET BIND, that justify to modify the actual UIB?
Thank you again and best regards,
Stephanie
Thank you very much, I didn't know, as I used triggers only for tables.
So I could do:
SET TERM !! ;
CREATE OR ALTER TRIGGER
DATABASE_ON_CONNECT
ACTIVE ON CONNECT POSITION 0
AS
BEGIN
SET BIND OF TIMESTAMP WITH TIME ZONE TO LEGACY;
SET BIND OF TIME WITH TIME ZONE TO LEGACY;
SET BIND OF DECFLOAT TO LEGACY;
SET BIND OF NUMERIC(38) TO LEGACY;
END!!
SET TERM ; !!
With Firebird 3 I become an error:
Token unknown - line 7,
column 3
SET
but I suppose that with FB 4 it should work.
In this case it's not necessary to use DataTypeCompatibility = 3.0 in databases.conf , isn't it?
Thank you again, best regards,
Stephanie
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/b39c7856-4f16-12bd-21c0-945c6ef9e4ec%40gmail.com.
Thank you all for your replies.
I've many, many TUIBDataBase components in my project. It requires time to upgrade the code on every AfterConnect event, so if with DataTypeCompatability I can solve, it is easier for me.
In the future I hope that UIB will support new types of FB4, in the meantime I need to be able to connect to FB4 if a server has already FB4 installed.
Thank you again for your help, now I know that I can somehow connect to FB4 database.
Best regards,
Stephanie
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/00709f6d-5e1a-24b8-0bbc-b2ce580baaca%40gmx.de.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/6066db02-6ce4-5b44-a3f8-52c1c7d7a5a3%40gmail.com.
Hello Pierre,
the reason is that I would
need that my software, which uses UIBs (which I find
excellent!!) is compatible with an installation of Firebird 4.
Now that FB4 is released, I might find situations where FB4 is
already installed, for example because there is other software
that uses FB4.
Sometimes I have the opposite problem, I have situations in
which there is other software that still needs FB2.5, or in
which FB2.5 still runs on the server, even if these situations
are now quite rare.
Furthermore it is also likely that
in the future new Linux distros
have FB4 in their repositories, so to have FB3 it is necessary
to install it from the tar.gz file (although this isn't a
great problem, but often these aspects are managed by an
user's technician, and not by me).
For this it would be very important that I can be sure that,
even without using the new datatypes of FB4, the UIBs are
compatible with a FB4 installation.
Then when the UIB will also manage the new datatypes of FB4
even better, but this can happen at a later time, also because
in any case if I use the new datatypes I would lose
compatibility with the previous versions of Firebird and now
it is still too early to do so.
Of course, when I can
choose, I choose FB3 to install, but this doesn't always
depend on me.
Thank your very much for your work with the UIB, I use them since 2006 and I'm very glad with them.
Best regards,
Stephanie
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/CABZLKTWT_08hQ2TN3%2Bxa%2B2JkaTnK_QbJOWi%3Du-OiLkx%2BjRnZWQ%40mail.gmail.com.
Hello Brahim,
I USE UIB with Lazarus. With FB3 all works great for me (I don't use UIB for backup/restore db, but gbak via TProcess).
Best regards,
Stephanie
Hello Stephanie,
Can you tell please if you use UIB for delphi or lazarus, I am using it with delphi and FB3 it works fine except for restoring db
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/88f06fc2-9ac4-d376-a59a-fc0823e32ba6%40gmail.com.
--
--Cordialement,
Brahim MohamedSupport
mobile
+(213) 06 62 37 64 94+(213) 05 52 39 25 65
site internet
You received this message because you are subscribed to a topic in the Google Groups "firebird-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebird-support/rG6A8N3OrIs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/CAGTJwZKBSfD6kksfH1BoY%3Dr79StrH28-XgQkS_2oUHiv_Su0ww%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/d068183b-dd9e-8d5b-53e4-1cd5f0f16952%40gmail.com.