-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Using UTF-16 for encoding in order to get the scripts to populate …
…data properly. 2. Updating SQL scripts to use Unicode strings. 3. Creating unit test to verify that data is properly encoded. 4. Adding CreatAll.bat to create all databases. --HG-- extra : convert_revision : svn%3A620c4292-3293-3848-9960-d3592df64433/Trunk%405
- Loading branch information
lerocha
committed
Aug 17, 2008
1 parent
792c4fe
commit 27a9ed4
Showing
21 changed files
with
8,023 additions
and
7,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
<?xml version="1.0" encoding="iso-8859-1"?> | ||
<DataSet xmlns="http://tempuri.org/DataSet.xsd"> | ||
<!-- | ||
!!!IMPORTANT!!! | ||
The first customer (CustomerId == 1) is used by | ||
the unit test RecordsWithProperUnicodeCharacters. | ||
Please do not change this record. If you do so, | ||
then use Unicode characters to enable the Unicode testing. | ||
--> | ||
<Customer> | ||
<CustomerId>1</CustomerId> | ||
<FirstName>Luís</FirstName> | ||
<LastName>Gonçalves</LastName> | ||
<Company>Embraer - Empresa Brasileira de Aeronáutica S.A.</Company> | ||
<Address>Av. Brigadeiro Faria Lima, 2170</Address> | ||
<City>Săo José dos Campos</City> | ||
<State>SP</State> | ||
<Country>Brazil</Country> | ||
<PostalCode>12227-000</PostalCode> | ||
<Phone>+55 (12) 3923-5555</Phone> | ||
<Fax>+55 (12) 3923-5566</Fax> | ||
<Email>[email protected]</Email> | ||
</Customer> | ||
<Customer> | ||
<CustomerId>2</CustomerId> | ||
<FirstName>Eduardo</FirstName> | ||
<LastName>Martins</LastName> | ||
<Company>Woodstock Discos</Company> | ||
|
@@ -15,7 +36,7 @@ | |
<Email>[email protected]</Email> | ||
</Customer> | ||
<Customer> | ||
<CustomerId>2</CustomerId> | ||
<CustomerId>3</CustomerId> | ||
<FirstName>Alexandre</FirstName> | ||
<LastName>Rocha</LastName> | ||
<Company>Banco do Brasil S.A.</Company> | ||
|
@@ -28,20 +49,6 @@ | |
<Fax>+55 (11) 3055-8131</Fax> | ||
<Email>[email protected]</Email> | ||
</Customer> | ||
<Customer> | ||
<CustomerId>3</CustomerId> | ||
<FirstName>Paula</FirstName> | ||
<LastName>Britto</LastName> | ||
<Company>Embraer S.A.</Company> | ||
<Address>Av. Brigadeiro Faria Lima, 2170</Address> | ||
<City>Săo Jose dos Campos</City> | ||
<State>SP</State> | ||
<Country>Brazil</Country> | ||
<PostalCode>12227-000</PostalCode> | ||
<Phone>+55 (12) 3923-5555</Phone> | ||
<Fax>+55 (12) 3923-5566</Fax> | ||
<Email>[email protected]</Email> | ||
</Customer> | ||
<Customer> | ||
<CustomerId>4</CustomerId> | ||
<FirstName>Roberto</FirstName> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@echo off | ||
|
||
echo ===================================================================== | ||
echo Creating SqlServer Database... | ||
echo ===================================================================== | ||
cd SqlServer | ||
call CreateDB.bat | ||
IF ERRORLEVEL 1 GOTO ERROR | ||
cd.. | ||
echo. | ||
|
||
echo ===================================================================== | ||
echo Creating MySql Database... | ||
echo ===================================================================== | ||
cd MySql | ||
call CreateDB.bat | ||
IF ERRORLEVEL 1 GOTO ERROR | ||
cd.. | ||
echo. | ||
|
||
echo ===================================================================== | ||
echo Creating Oracle Database... | ||
echo ===================================================================== | ||
cd Oracle | ||
call CreateDB.bat | ||
IF ERRORLEVEL 1 GOTO ERROR | ||
cd.. | ||
echo. | ||
|
||
goto EXIT | ||
|
||
:ERROR | ||
cd.. | ||
echo. | ||
echo ===================================================================== | ||
echo An error occured when creating databases. Please review errors above. | ||
echo ===================================================================== | ||
echo. | ||
goto EXIT | ||
|
||
:EXIT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
mysql -h localhost -u root -p <CreateDB.sql | ||
@echo off | ||
mysql -h localhost -u root --password=p4ssw0rd <CreateDB.sql |
Oops, something went wrong.