Skip to content

Commit e9a35be

Browse files
committed
fix(review): move PG docs link to SetOf variant, remove parser doc comment
Address review feedback on #2217.
1 parent a516fec commit e9a35be

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/ast/ddl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3467,15 +3467,15 @@ impl fmt::Display for CreateDomain {
34673467
}
34683468

34693469
/// The return type of a `CREATE FUNCTION` statement.
3470-
///
3471-
/// [PostgreSQL](https://www.postgresql.org/docs/current/sql-createfunction.html)
34723470
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
34733471
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
34743472
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
34753473
pub enum FunctionReturnType {
34763474
/// `RETURNS <type>`
34773475
DataType(DataType),
34783476
/// `RETURNS SETOF <type>`
3477+
///
3478+
/// [PostgreSQL](https://www.postgresql.org/docs/current/sql-createfunction.html)
34793479
SetOf(DataType),
34803480
}
34813481

src/parser/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5883,9 +5883,6 @@ impl<'a> Parser<'a> {
58835883
})
58845884
}
58855885

5886-
/// Parse a [`FunctionReturnType`] after the `RETURNS` keyword.
5887-
///
5888-
/// Handles `RETURNS SETOF <type>` and plain `RETURNS <type>`.
58895886
fn parse_function_return_type(&mut self) -> Result<FunctionReturnType, ParserError> {
58905887
if self.parse_keyword(Keyword::SETOF) {
58915888
Ok(FunctionReturnType::SetOf(self.parse_data_type()?))

0 commit comments

Comments
 (0)