ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Peter V. Saveliev" <peet@eltel.net>
To: Evgeny Yugov <yugov@scs-900.ru>, sisyphus@altlinux.ru
Subject: Re: [sisyphus] mysql sorting order problem
Date: Wed, 15 Oct 2003 12:29:07 +0400
Message-ID: <20031015122907.6d997631.peet@eltel.net> (raw)
In-Reply-To: <19419151969.20031015151422@scs-900.ru>

On Wed, 15 Oct 2003 15:14:22 +0700
Evgeny Yugov <yugov@scs-900.ru> wrote:

<skip />
> Хм, а тип поля какой?
> Что говорят про этот тип и сортировку в кирилице, в документации?
> 
> PS Что-то подобное пролетало и с PostgreSQL, но с последним(версия
> 7.2.1 с ALM 2.2) у меня нет проблем... база в koi8-r.
<skip />

[peet@mysql peet]$ echo "describe peet.test" | mysql -p
Enter password: 
Field	Type	Null	Key	Default	Extra
id	int(11)		PRI	0	
text	text	YES		NULL	

В общем-то, как показал опыт, то же происходит и с varchar, по любому.
Это раз, а два, работало же, базы у нас не первый год живут. в
документации много чего интересного сказано, но там говорится про
collate, а 4.0.15 про такое не знает:

[peet@mysql peet]$ echo "select * from peet.test order by text collate cp1251_general_ci" | mysql -p
Enter password: 
ERROR 1064 at line 1: You have an error in your SQL syntax.  Check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'collate cp1251_general_ci' at line 1

также там говорится про character set:

[peet@mysql peet]$ echo "alter database peet character set cp1251" | mysql -p
Enter password: 
ERROR 1064 at line 1: You have an error in your SQL syntax.  Check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'database peet character set cp1251' at line 1

В общем, есть подозрение, что документация абсолютно иррелевантна версии
4.0.15. Или у меня руки в упор косые, что тоже возможно.

-- 
 12:21:53  up 33 days, 23:38,  7 users,  load average: 0.31, 0.51, 0.51

++
Sincerely, Peter V. Saveliev

E-mail: peet@eltel.net
Jabber: peet@jabber.ru



  reply	other threads:[~2003-10-15  8:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15  6:42 Peter V. Saveliev
2003-10-15  6:58 ` Evgeny Yugov
2003-10-15  8:06   ` Peter V. Saveliev
2003-10-15  8:14     ` Re[2]: " Evgeny Yugov
2003-10-15  8:29       ` Peter V. Saveliev [this message]
2003-10-15  8:43         ` Evgeny Yugov
2003-10-15  8:51           ` Peter V. Saveliev
2003-10-15  9:06             ` Re[2]: " Evgeny Yugov
2003-10-15 17:10             ` Serge Pavlovsky
2003-10-16 22:55             ` Peter V. Saveliev
2003-10-17  1:05               ` Peter V. Saveliev
2003-10-17  1:34                 ` Peter V. Saveliev
2003-10-15 17:02         ` Serge Pavlovsky
2003-10-16 11:04         ` Sanja Byelkin

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=20031015122907.6d997631.peet@eltel.net \
    --to=peet@eltel.net \
    --cc=sisyphus@altlinux.ru \
    --cc=yugov@scs-900.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