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:
parent
987baff6b4
commit
d8097dbaf0
@ -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);
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user