Subject | Precompiling with gpre.exe, Firebird 2.5: Warning about -manual to be set |
---|---|
Author | eggersmannm |
Post date | 2010-11-12T11:00:53Z |
Hello,
after having changed from Firebird 2.1 to 2.5, I have the following problem:
With Firebird 2.1 Classic I could precompile C sources with embedded SQL statements using gpre.exe without specifying a user and a password for the database. When I try to do such a precompile with Firebird 2.5 Classic, I get the following error message:
Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
(E) c:\project\dev\src\source.SQC:125: Couldn't access database TDB = '.\..\..\DB\DATABASE.FDB'
Now when I'm adding the user and password to the gpre statement, I get the following warning:
gpre: -user, -password and -charset switches require -manual
But I don't want to use the -manual option because I want to work with automatic transactions (like I did with Firebird 2.1), not using the SET TRANSACTION statement.
Despite the warning I get a proper .c file as a result of the precompile. Now my question: Can I ignore the warning? And why does Firebird 2.5. require user and password for the gpre execution whereas Firebird 2.1 didn't? What's the reason for this change?
OS is Windows XP Professional, Version 2002, SP 3.
Thanks in advance and best wishes
Michael
after having changed from Firebird 2.1 to 2.5, I have the following problem:
With Firebird 2.1 Classic I could precompile C sources with embedded SQL statements using gpre.exe without specifying a user and a password for the database. When I try to do such a precompile with Firebird 2.5 Classic, I get the following error message:
Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
(E) c:\project\dev\src\source.SQC:125: Couldn't access database TDB = '.\..\..\DB\DATABASE.FDB'
Now when I'm adding the user and password to the gpre statement, I get the following warning:
gpre: -user, -password and -charset switches require -manual
But I don't want to use the -manual option because I want to work with automatic transactions (like I did with Firebird 2.1), not using the SET TRANSACTION statement.
Despite the warning I get a proper .c file as a result of the precompile. Now my question: Can I ignore the warning? And why does Firebird 2.5. require user and password for the gpre execution whereas Firebird 2.1 didn't? What's the reason for this change?
OS is Windows XP Professional, Version 2002, SP 3.
Thanks in advance and best wishes
Michael