... | ... | @@ -5,6 +5,8 @@ |
|
|
```CREATE ROLE root;```
|
|
|
|
|
|
## Nastaveni implicitniho pretypovavani integer -> boolean
|
|
|
viz https://dba.stackexchange.com/questions/46140/have-postgresql-accept-1-and-0-as-true-and-false-for-boolean
|
|
|
|
|
|
aby se daly pouzivat cisla `1/0` misto `true/false`:
|
|
|
|
|
|
```update pg_cast set castcontext='a' where castsource = 'int4'::regtype and casttarget = 'boolean'::regtype;```
|
... | ... | |