title: Boolean type with PostgreSQL in Yii
body: <p>Simple Postgres table:</p>
  
  <pre><code>CREATE TABLE public.test (
    id INTEGER NOT NULL, 
    val BOOLEAN NOT NULL, 
    CONSTRAINT test_pkey PRIMARY KEY(id)
  );
  </code></pre>
  
  <p><strong>Do this</strong>:</p>
  
  <pre><code>Yii::app()-&gt;db-&gt;createCommand()-&gt;insert('test', array(
          'id'=&gt;1,
          'val'=&gt;true,
      ));
  </code></pre>
  
  <p>Everithing's allright:</p>
  
  <pre><code>Executing SQL: INSERT INTO "test" ("id", "val") VALUES (:id, :val). Bound with :id=1, :val=true
  </code></pre>
  
  <p>But <strong>doing this</strong></p>
  
  <pre><code>Yii::app()-&gt;db-&gt;createCommand()-&gt;insert('test', array(
          'id'=&gt;1,
          'val'=&gt;false,
      ));
  </code></pre>
  
  <p>I'm getting the <strong>error</strong>:</p>
  
  <pre><code>SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type boolean: ""
  LINE 1: INSERT INTO "test" ("id", "val") VALUES ('1', '')
  ^. The SQL statement executed was: INSERT INTO "test" ("id", "val") VALUES (:id, :val). Bound with :id=1, :val=false
  </code></pre>
  
  <p>Am I wrong?</p>