Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6dfacbf

Browse files
committed
Add non-decimal integer support to type numeric.
This enhances the numeric type input function, adding support forhexadecimal, octal, and binary integers of any size, up to the limitsof the numeric type.Since6fcda9a, such non-decimal integers have been accepted by theparser as integer literals and passed through to numeric_in(). Thiscommit gives numeric_in() the ability to handle them.While at it, simplify the handling of NaN and infinities, reducing thenumber of calls to pg_strncasecmp(), and arrange for pg_strncasecmp()to not be called at all for regular numbers. This gives a significantperformance improvement for decimal inputs, more than offsetting thesmall performance hit of checking for non-decimal input.Discussion:https://postgr.es/m/CAEZATCV8XShnmT9HZy25C%2Bo78CVOFmUN5EM9FRAZ5xvYTggPMg%40mail.gmail.com
1 parent62e1e28 commit6dfacbf

File tree

4 files changed

+405
-95
lines changed

4 files changed

+405
-95
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp