From: Evgeniy Kobzev <evgenik@diamonds.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Производительность SQLite!
Date: Wed, 01 Dec 2004 13:30:32 +0300
Message-ID: <41AD9D48.1020003@diamonds.ru> (raw)
In-Reply-To: <41AD9773.1070007@diyaorg.dp.ua>
Roman Savochenko пишет:
>
> Евгений, ещё один вопрос можно? :)
>
> Очередное подозрение на грабли в C-API.
> Почему если запрашивать <SELECT name FROM "test00" WHERE "name"='Sh2';>
> получаю имена колонок: <name>
> А если <SELECT "name" FROM "test00" WHERE "name"='Sh2';>
> то имена колонок: <"name">;
> Подозрительная неоднозначность!
>
Я не уверен, но скорее всего дело вот в чём.
Имена колонок могут быть как "простыми" (field_one, field_two), так
"сложными" ("this my super field"). Т.е. с пробелами и без.
Так вот SQLite скорее всего смотрит, если имя без кавычек, то оно
простое, и возвращает его как простое имя, а если имя в кавычках, то и
возвращает его в кавычках, даже если оно простое.
Если хозяин написал в кавычках, значит ему ему виднее :)
Но повторюсь, это сугубо мое мнение.
next prev parent reply other threads:[~2004-12-01 10:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-29 17:13 Roman Savochenko
2004-11-29 21:18 ` Alexey Rusakov
2004-11-30 7:22 ` Roman Savochenko
2004-11-30 10:08 ` Evgeniy Kobzev
2004-11-30 16:08 ` Roman Savochenko
2004-11-30 16:46 ` Roman Savochenko
2004-12-01 10:05 ` Roman Savochenko
2004-12-01 10:30 ` Evgeniy Kobzev [this message]
2004-12-02 14:19 ` Денис Смирнов
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=41AD9D48.1020003@diamonds.ru \
--to=evgenik@diamonds.ru \
--cc=community@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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git