Exemplo n.º 1
0
 /**
  * Test for seconds extraction from date.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function test__toStringSecond()
 {
     $q = new PostgresqlQuery($this->dbo);
     $q->select($q->second($q->quoteName('col')))->from('table');
     $this->assertThat((string) $q, $this->equalTo(PHP_EOL . "SELECT EXTRACT (SECOND FROM \"col\")" . PHP_EOL . "FROM table"));
 }