8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Use isql option to set character set from command line, to connect with a command line specified database with non default charset.

This commit is contained in:
brodsom 2003-07-16 18:49:59 +00:00
parent 987baff6b4
commit d8097dbaf0
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ sprintf (cmd, "isql %s -i indexoff.sql", Db_name);
system (cmd);
printf ("Loading column data\n");
sprintf (cmd, "isql %s -i intldml.sql", Db_name);
sprintf (cmd, "isql %s -ch ISO8859_1 -i intldml.sql", Db_name);
system (cmd);
printf ("Turning on indices and triggers \n");
sprintf (cmd, "isql %s -i indexon.sql", Db_name);

View File

@ -37,9 +37,9 @@
/*
* Add countries. Must use SET NAMES because this file contains ISO characters.
*/
COMMIT;
SET NAMES ISO8859_1;
CONNECT intlemp.fdb;
/* COMMIT; */
/* SET NAMES ISO8859_1; */
/* CONNECT intlemp.fdb; */
INSERT INTO country (country, currency) VALUES ('USA', 'Dollar');
INSERT INTO country (country, currency) VALUES ('UK', 'Pound');