/** * Parses definitions that are present after column definition is * closed with ')'. * * @param type type being parsed * @param commands commands being processed * * @return true if the command was the last command for CREATE TYPE, * otherwise false */ private static function parse_post_columns(&$type, $commands) { $line = $commands; if (preg_match(self::PATTERN_WITH_OIDS, $line, $matches) > 0) { dbx::set_attribute($node_table, 'withOIDS', 'true'); $line = sql_parser::removeSubString($line, "WITH OIDS"); } else { if (preg_match(self::PATTERN_WITHOUT_OIDS, $line, $matches) > 0) { dbx::set_attribute($node_table, 'withOIDS', 'false'); $line = sql_parser::removeSubString($line, "WITHOUT OIDS"); } } return $line; }