parses the precision in timestamp( ) and timestamptz( )
(&mut self)
| 7165 | |
| 7166 | // parses the precision in timestamp(<precision>) and timestamptz(<precision>) |
| 7167 | fn parse_timestamp_precision(&mut self) -> Result<Vec<i64>, ParserError> { |
| 7168 | if self.consume_token(&Token::LParen) { |
| 7169 | let typ_mod = self.parse_literal_int()?; |
| 7170 | self.expect_token(&Token::RParen)?; |
| 7171 | Ok(vec![typ_mod]) |
| 7172 | } else { |
| 7173 | Ok(vec![]) |
| 7174 | } |
| 7175 | } |
| 7176 | |
| 7177 | /// Parse `AS identifier` (or simply `identifier` if it's not a reserved keyword) |
| 7178 | /// Some examples with aliases: `SELECT 1 foo`, `SELECT COUNT(*) AS cnt`, |
no test coverage detected