Bug #25217 | Bug latin1 charset | ||
---|---|---|---|
Submitted: | 20 Dec 2006 13:28 | Modified: | 12 Mar 2007 15:43 |
Reporter: | Danilo Pimentel | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S1 (Critical) |
Version: | 5.0.22 and 5.1.14 | OS: | Windows (Windows XP SP2) |
Assigned to: | CPU Architecture: | Any |
[20 Dec 2006 13:28]
Danilo Pimentel
[20 Dec 2006 18:12]
Danilo Pimentel
PS: This problem just occurs when adding the first record using ODBC or .NET drivers to connect to database. If we add the first record using query browser, other rows can be added sucessfuly using ODBC and .NET drivers or query browser.
[21 Dec 2006 17:21]
Valeriy Kravchuk
Thank you for a problem report. Please, send the results of: show variables like 'char%'; from the same mysql command line window where you tested these.
[22 Dec 2006 13:44]
Danilo Pimentel
show variable like 'char%'
Attachment: mysql.JPG (image/pjpeg, text), 31.55 KiB.
[22 Dec 2006 13:46]
Danilo Pimentel
Hi Valeriy Kravchuk, Follow the image with the results requested. Thanks Danilo Pimentel
[12 Feb 2007 15:43]
Valeriy Kravchuk
Please, try to repeat with a newer version, 5.0.27 and 5.1.15, and execute 'set names latin1" before testing. Look: mysql> SET sql_mode = 'ANSI_QUOTES'; Query OK, 0 rows affected (0.00 sec) mysql> DROP Table If EXISTS "táblé1"; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> DROP Table If EXISTS "táblé2"; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> CREATE Table "táblé1" -> ( -> "code1" varchar (4) Default '' NOT NULL, -> "description1" varchar (80) Default '' NOT NULL -> ); Query OK, 0 rows affected (0.08 sec) mysql> CREATE Table "táblé2" -> ( -> "code2" varchar (4) Default '' NOT NULL, -> "description2" varchar (80) Default '' NOT NULL, -> "code1" varchar (4) Default '' NOT NULL -> ); Query OK, 0 rows affected (0.11 sec) mysql> delimiter // mysql> CREATE TRIGGER "table1_trg_upd" BEFORE Update On "táblé1" For Each Row -> Begin -> Declare i INT; -> If (OLD."code1" <> NEW."code1") Then -> UPDATE "táblé2" -> SET "code1" = NEW."code1" -> WHERE "code1" = OLD."code1"; -> End If; -> End// Query OK, 0 rows affected (0.01 sec) mysql> delimiter ; mysql> insert into "táblé1" values('abc', 'def'); Query OK, 1 row affected (0.08 sec) mysql> update "táblé1" set "description1" = 'WOW'; Query OK, 1 row affected (0.06 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> select version(); Field 1: `version()` Catalog: `def` Database: `` Table: `` Org_table: `` Type: VAR_STRING Collation: latin1_swedish_ci (8) Length: 19 Max_length: 19 Decimals: 31 Flags: NOT_NULL +---------------------+ | version() | +---------------------+ | 5.0.27-community-nt | +---------------------+ 1 row in set (0.00 sec) mysql> show variables like 'char%'; Field 1: `Variable_name` Catalog: `def` Database: `` Table: `VARIABLES` Org_table: `` Type: VAR_STRING Collation: latin1_swedish_ci (8) Length: 80 Max_length: 24 Decimals: 0 Flags: NOT_NULL Field 2: `Value` Catalog: `def` Database: `` Table: `VARIABLES` Org_table: `` Type: VAR_STRING Collation: latin1_swedish_ci (8) Length: 255 Max_length: 55 Decimals: 0 Flags: NOT_NULL +--------------------------+---------------------------------------------------- -----+ | Variable_name | Value | +--------------------------+---------------------------------------------------- -----+ | character_set_client | latin1 | | character_set_connection | latin1 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | C:\Program Files\MySQL\MySQL Server 5.0\share\chars ets\ | +--------------------------+---------------------------------------------------- -----+ 8 rows in set (0.00 sec)
[13 Mar 2007 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".