示例#1
0
 /**
  * @param DriverInterface $driver
  * @param string $compiled
  * @return string
  */
 private function compileRegular(DriverInterface $driver, $compiled)
 {
     if (!$this->nullable) {
         $compiled .= ' NOT NULL';
     }
     if (null !== $this->defval) {
         $compiled .= ' DEFAULT "' . $driver->escapeValue($this->defval) . '"';
     }
     return $compiled;
 }