From: Jeff J. - S. <J_...@MC...> - 2008-04-17 15:11:58
|
Can you give me an example of how to use the -ch switch? I cannot find any documentation on it. Thanks! Jeff -----Original Message----- From: fir...@li... [mailto:fir...@li...] On Behalf Of Pavel Cisar Sent: Thursday, April 17, 2008 07:40 AM To: fir...@li... Subject: Re: [Firebird-test] Test will not connect to database (rather long) Jeff Jones - SHERIFFX napsal(a): > I cannot find any documentation of how to use the -ch parameter in a > CONNECT statement. I have found where you use a SET statement before > the CONNECT statement to set the character set, and that seems to work > fine. I have been unable to see how fbqa.py handles the connection. The -ch option is cmdline switch equivalent to SET NAMES command used in isql console before CONNECT/CREATE DATABASE statement. When you pass the database name (and user name and password) as command line parameters to isql, you need to use -ch when you need specific character set for connection, as using SET NAMES is already too late. fbqa.py passes these parameters as cmd switches because initialization scripts and actual tests scripts feeded to isql stdin can't contain CONNECT/CREATE DATABASE commands (for many reasons, for example they don't know the real paths), hence it uses the -ch option. best regards Pavel Cisar IBPhoenix ------------------------------------------------------------------------ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ Firebird-test mailing list Fir...@li... https://lists.sourceforge.net/lists/listinfo/firebird-test |