출발 : | "Donald Fraser"<Demolish (at) cwgsy (dot) net |
---|---|
to : | "[버그]"<pgsql-bugs (at) postgresql (dot) org |
제목 : | 조정 토토 핫fortypmod 함수의 버그 |
날짜 : | 2003-05-13 16:55:29 |
메시지 -ID : | 005D01C31970 $ 790295F0 $ 1664A8C0@Demolition |
보기 : | RAW 메시지|전체 스레드|mbox 다운로드|이메일 재판용 |
스레드 : | |
목록 : | pgsql-bugs |
i686-PC-Linux-GNU의 Postgresql 7.3.2, GCC 2.96에 의해 컴파일
다음 기능 정의 :
extern datum testdate (pg_function_args);
pg_function_info_v1 (testDate);
Datum
TestDate (pg_function_args)
Datum tnow = DirectFunctionCall3 (timestamp_in,
cstringgetDatum ( "now"),
ObjectIdgetDatum (invalidoid),
int32getDatum (0));
Datum Interm = DirectFunctionCall3 (Interval_in,
cstringgetDatum ( "7 일"),
ObjectIdgetDatum (invalidoid),
int32getDatum (0));
Datum tnow_pl_interval = DirectFunctionCall2 (timestamp_pl_span,
tnow,
Interm);
text *ptext = datumgetTextp (DirectFunctionCall1 (TextIn, DirectFunctionCall1 (timestamp_out, tnow_pl_토토 핫)));
if (ptext == null)
pg_return_null ();
pg_return_text_p (ptext);
bugs = "testDate"(); 선택
이 오류 메시지 생성 :
ERROR : Advern토토 핫fortypmod () : 내부 코딩 오류
하지만 동등한 SQL을 호출하면 다음과 같은 오류가 없습니다.
bugs = select timestamp_pl_span ( 'now':: timestamp (0), '7 days':: 토토 핫 (0));
Timestamp_pl_span
---------------------
2003-05-20 17:35:21
(1 행)
나는 코드를 검색하여 기능에서 실패가 발생하고 있음을 발견했습니다.
"정적 void Adject토토 핫fortypmod (토토 핫 *토토 핫, Int32 Typmod)"
문제를 해결하려면 "-1"으로 "토토 핫"에 대한 유형 수정자를 설정합니다.
GODS
Donald Fraser
From | 날짜 | 주제 | |
---|---|---|---|
다음 메시지 | Tom Lane | 2003-05-13 17:44:52 | Re : Adj토토 핫fortypmod 함수의 버그 |
이전 메시지 | Shaodi | 2003-05-13 06:01:01 | 버그 보고서 -20030513 |