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

Commit80476ef

Browse files
committed
fix function interval_is_trivial() for 32-bit platforms
1 parent369b49d commit80476ef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/pl_range_funcs.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,9 +701,16 @@ interval_is_trivial(Oid atttype, Datum interval, Oid interval_type)
701701
switch(atttype)
702702
{
703703
caseINT2OID:
704+
default_value=Int16GetDatum(0);
705+
break;
706+
704707
caseINT4OID:
708+
default_value=Int32GetDatum(0);
709+
break;
710+
711+
/* Take care of 32-bit platforms */
705712
caseINT8OID:
706-
default_value=Int16GetDatum(0);
713+
default_value=Int64GetDatum(0);
707714
break;
708715

709716
caseFLOAT4OID:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp