Skip to content

Commit a6ae8a3

Browse files
IndexSeekiffyio
andauthored
docs: reduce parse_signed integer commenting
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
1 parent 7c949e9 commit a6ae8a3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/parser/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11229,14 +11229,8 @@ impl<'a> Parser<'a> {
1122911229
}
1123011230
}
1123111231

11232-
/// Parse a scale value for NUMERIC/DECIMAL data types.
11233-
///
11234-
/// Supports positive, negative, and explicitly positive (with `+`) scale values.
11235-
/// Negative scale values are particularly useful for PostgreSQL, where they indicate
11236-
/// rounding to the left of the decimal point. For example:
11237-
/// - `NUMERIC(5, 2)` stores up to 5 digits with 2 decimal places (e.g., 123.45)
11238-
/// - `NUMERIC(5, -2)` stores up to 5 digits rounded to hundreds (e.g., 12300)
11239-
fn parse_scale_value(&mut self) -> Result<i64, ParserError> {
11232+
/// Parse an optionally signed integer literal.
11233+
fn parse_signed_integer(&mut self) -> Result<i64, ParserError> {
1124011234
let next_token = self.next_token();
1124111235
match next_token.token {
1124211236
Token::Number(s, _) => Self::parse::<i64>(s, next_token.span.start),

0 commit comments

Comments
 (0)