ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] MySQL LIKE - bug?
@ 2002-04-14  5:56 Mikhail Yakshin
  2002-04-15 11:11 ` [sisyphus] " Konstantin Lepikhov
  0 siblings, 1 reply; 3+ messages in thread
From: Mikhail Yakshin @ 2002-04-14  5:56 UTC (permalink / raw)
  To: sisyphus

Приветствую!

Наблюдается в MySQL следующее:

mysql> SELECT "С" LIKE "р%";
+---------------+
| "С" LIKE "р%" |
+---------------+
|             1 |
+---------------+

mysql> SELECT "с" LIKE "р%";
+---------------+
| "с" LIKE "р%" |
+---------------+
|             1 |
+---------------+

и тому подобные вещи. Буквы р, С, с - русские.  То есть под шаблон типа
"все, начинающееся на русскую букву 'р'" подходят также при селектах и
записи, начинающиеся на буквы 'С' и тому подобные (еще на 'Т', 'У' и ряд
других). Системы никакой в этом я не вижу - что-то со сбитой локалью
где-то промежуточно или это баг MySQL?

При использовании REGEXP'ов - все нормально:

mysql> SELECT "С" REGEXP "^Р.*";
+-------------------+
| "С" REGEXP "^Р.*" |
+-------------------+
|                 0 |
+-------------------+

Система в koi8-r, ALTLinux MSI, проапгрейженный частично до последних
вариантов Сизифа.

$ rpm -qa |grep MySQL
libMySQL-3.23.49-alt2
libMySQL-devel-3.23.49-alt2
MySQL-server-3.23.49-alt2
MySQL-client-3.23.49-alt2
MySQL-doc-3.23.47-alt1

У кого-нибудь это еще воспроизводится?

WBR, Mikhail Yakshin AKA GreyCat.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sisyphus] Re: MySQL LIKE - bug?
  2002-04-14  5:56 [sisyphus] MySQL LIKE - bug? Mikhail Yakshin
@ 2002-04-15 11:11 ` Konstantin Lepikhov
  2002-04-15 11:19   ` Korshunov Ilya
  0 siblings, 1 reply; 3+ messages in thread
From: Konstantin Lepikhov @ 2002-04-15 11:11 UTC (permalink / raw)
  To: sisyphus

Hi!

В Sun 14, 09:56:07 +0400, Mikhail Yakshin(greycat@altlinux.ru) wrote:

> Приветствую!
> 
> Наблюдается в MySQL следующее:
> 
> mysql> SELECT "С" LIKE "р%";
> +---------------+
> | "С" LIKE "р%" |
> +---------------+
> |             1 |
> +---------------+
> 
> mysql> SELECT "с" LIKE "р%";
> +---------------+
> | "с" LIKE "р%" |
> +---------------+
> |             1 |
> +---------------+
> 
Подтверждаю
> 
> При использовании REGEXP'ов - все нормально:
> 
> mysql> SELECT "С" REGEXP "^Р.*";
> +-------------------+
> | "С" REGEXP "^Р.*" |
> +-------------------+
> |                 0 |
> +-------------------+
> 
То же самое
<skip>
> libMySQL-3.23.49-alt2
> libMySQL-devel-3.23.49-alt2
> MySQL-server-3.23.49-alt2
> MySQL-client-3.23.49-alt2
То же самое

-- 
WBR, Konstantin
	...The information is like the bank... (c) EC8OR



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Re: MySQL LIKE - bug?
  2002-04-15 11:11 ` [sisyphus] " Konstantin Lepikhov
@ 2002-04-15 11:19   ` Korshunov Ilya
  0 siblings, 0 replies; 3+ messages in thread
From: Korshunov Ilya @ 2002-04-15 11:19 UTC (permalink / raw)
  To: sisyphus

Mon, 15 Apr 2002 15:11:13 +0400
Konstantin Lepikhov <lakostis@elektrostal.ru> Писал:

> Hi!
> 
> В Sun 14, 09:56:07 +0400, Mikhail Yakshin(greycat@altlinux.ru) wrote:
> 
> > Приветствую!
> > 
> > Наблюдается в MySQL следующее:
> > 
> > mysql> SELECT "С" LIKE "р%";
> > +---------------+
> > | "С" LIKE "р%" |
> > +---------------+
> > |             1 |
> > +---------------+
> > 
> > mysql> SELECT "с" LIKE "р%";
> > +---------------+
> > | "с" LIKE "р%" |
> > +---------------+
> > |             1 |
> > +---------------+
> > 
> Подтверждаю
> > 

Дык это в bugs@mysql.com наверно....хотя этот там уже проходил если память не изменяет. 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-15 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-14  5:56 [sisyphus] MySQL LIKE - bug? Mikhail Yakshin
2002-04-15 11:11 ` [sisyphus] " Konstantin Lepikhov
2002-04-15 11:19   ` Korshunov Ilya

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git