[freetds] dbuse failure to connect to a database name containingnumbers
Lowden, James K
james.k.lowden at alliancebernstein.com
Thu Oct 26 15:14:15 EDT 2006
> From: Shaun Craig
> Sent: Thursday, October 26, 2006 12:10 PM
> I have no problems connecting to the following database 'Test'
> using dbuse()
> #define DBNAME "Test"
> *if* ( dbuse(dbconn_pool, DBNAME) == FAIL ) *
> return* -1; *
> else* *
> return* 0;
> However when I use a number in the database name it fails
> #define DBNAME "Test2"
I think you must be mistaken. It certainly works with the current code.
Try src/dblib/unittests/t0001.c. Run that with your database. If it
doesn't work, please send us the TDSDUMP log.
(t0001 won't fail if dbuse() fails. But check the log. If it works,
you'll see the message coming back from the server as a received packet.
As of tomorrow's snapshot, t0001 will fail if dbuse() fails.)
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent responsible
for delivering this message to the intended recipient, any review, dissemination,
distribution or duplication of this communication is strictly prohibited. If you are
not the intended recipient, please contact the sender immediately by reply e-mail
and destroy all copies of the original message. Please note that we do not accept
account orders and/or instructions by e-mail, and therefore will not be responsible
for carrying out such orders and/or instructions. If you, as the intended recipient
of this message, the purpose of which is to inform and update our clients, prospects
and consultants of developments relating to our services and products, would not
like to receive further e-mail correspondence from the sender, please "reply" to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New York,
More information about the FreeTDS