From: Mikhail Yakshin <greycat@altlinux.ru> To: sisyphus@altlinux.ru Subject: [sisyphus] MySQL LIKE - bug? Date: Sun, 14 Apr 2002 09:56:07 +0400 Message-ID: <3CB919F7.8000107@altlinux.ru> (raw) Приветствую! Наблюдается в 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.
next reply other threads:[~2002-04-14 5:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-04-14 5:56 Mikhail Yakshin [this message] 2002-04-15 11:11 ` [sisyphus] " Konstantin Lepikhov 2002-04-15 11:19 ` Korshunov Ilya
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3CB919F7.8000107@altlinux.ru \ --to=greycat@altlinux.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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