|
Проблемы регистра с названиями таблиц, полей
|
|||
---|---|---|---|
#18+
После конвертации БД в pg возникли проблемы: запросы выполняются только для таблиц и полей с названиями в нижнем регистре. Это ограничение pg или где-то есть какая-то настройка? ... |
|||
:
Нравится:
Не нравится:
|
|||
29.04.2004, 13:20 |
|
Проблемы регистра с названиями таблиц, полей
|
|||
---|---|---|---|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.
См. Chapter 4. SQL Syntax подраздел 4.1. Lexical Structure документации. PostgreSQL Documentation Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case. For example, the identifiers FOO, foo, and "foo" are considered the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other. [1] Notes [1] The folding of unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that unquoted names should be folded to upper case. Thus, foo should be equivalent to "FOO" not "foo" according to the standard. If you want to write portable applications you are advised to always quote a particular name or never quote it. ... |
|||
:
Нравится:
Не нравится:
|
|||
29.04.2004, 13:53 |
|
Проблемы регистра с названиями таблиц, полей
|
|||
---|---|---|---|
#18+
Да, еще забыл. Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8.
Мы видим, что имена столбцов квотировались при создании. ... |
|||
:
Нравится:
Не нравится:
|
|||
29.04.2004, 13:57 |
|
|
start [/forum/topic.php?fid=53&msg=32502524&tid=2007882]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
76ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
42ms |
get tp. blocked users: |
1ms |
others: | 325ms |
total: | 491ms |
0 / 0 |