|
|
|
argument of CASE/WHEN must be type boolean, not type text
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2004, 18:03:26 |
|
||
|
argument of CASE/WHEN must be type boolean, not type text
|
|||
|---|---|---|---|
|
#18+
или даже так Код: plaintext 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2004, 18:05:25 |
|
||
|
argument of CASE/WHEN must be type boolean, not type text
|
|||
|---|---|---|---|
|
#18+
Ага, пробую так и всё получается Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2004, 18:09:18 |
|
||
|
argument of CASE/WHEN must be type boolean, not type text
|
|||
|---|---|---|---|
|
#18+
Похоже, что правильно. В PostgreSQL я давно такое по документации искал, но тоже не видел, а например в Sybase такую конструкцию все кому не лень ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2004, 18:48:07 |
|
||
|
argument of CASE/WHEN must be type boolean, not type text
|
|||
|---|---|---|---|
|
#18+
да нет, вроде все черным по белому: автор 9.12.1. CASE The SQL CASE expression is a generic conditional expression, similar to if/else statements in other languages: Код: plaintext 1. 2. 3. Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. The following "simple" CASE expression is a specialized variant of the general form above: Код: plaintext 1. 2. 3. 4. The example above can be written using the simple CASE syntax: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.10.2004, 19:05:42 |
|
||
|
argument of CASE/WHEN must be type boolean, not type text
|
|||
|---|---|---|---|
|
#18+
надо было тип проводить NULLIF(s_title, null)::bool у постгреса ваще проблеммы с приведением типов ... аналогично: select '12.05' + 1 не работает select '12.05'::float + 1 работает ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.10.2004, 16:30:00 |
|
||
|
|

start [/forum/topic.php?fid=53&fpage=351&tid=2007618]: |
0ms |
get settings: |
8ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
88ms |
get topic data: |
9ms |
get forum data: |
3ms |
get page messages: |
49ms |
get tp. blocked users: |
1ms |
| others: | 221ms |
| total: | 400ms |

| 0 / 0 |
