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

Commit9310075

Browse files
author
Thomas G. Lockhart
committed
Accept an INTERVAL argument for SET TIME ZONE per SQL99.
Modified the parser and the SET handlers to use full Node structures rather than simply a character string argument.Implement INTERVAL() YEAR TO MONTH (etc) syntax per SQL99. Does not yet accept the goofy string format that goes along with, but this should be fairly straight forward to fix now as a bug or later as a feature.Implement precision for the INTERVAL() type. Use the typmod mechanism for both of INTERVAL features.Fix the INTERVAL syntax in the parser: opt_interval was in the wrong place.INTERVAL is now a reserved word, otherwise we get reduce/reduce errors.Implement an explicit date_part() function for TIMETZ. Should fix coersion problem with INTERVAL reported by Peter E.Fix up some error messages for date/time types. Use all caps for type names within message.Fix recently introduced side-effect bug disabling 'epoch' as a recognized field for date_part() etc. Reported by Peter E. (??)Bump catalog version number.Rename "microseconds" current transaction time field from ...Msec to ...Usec. Duh!date/time regression tests updated for reference platform, but a few changes will be necessary for others.
1 parent6254465 commit9310075

File tree

23 files changed

+942
-370
lines changed

23 files changed

+942
-370
lines changed

‎src/backend/access/transam/xact.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.111 2001/09/29 04:02:21 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.112 2001/10/18 17:30:03 thomas Exp $
1212
*
1313
* NOTES
1414
*Transaction aborts can now occur two ways:
@@ -378,7 +378,7 @@ GetCurrentTransactionStartTimeUsec(int *msec)
378378
{
379379
TransactionStates=CurrentTransactionState;
380380

381-
*msec=s->startTimeMsec;
381+
*msec=s->startTimeUsec;
382382

383383
returns->startTime;
384384
}
@@ -877,7 +877,7 @@ StartTransaction(void)
877877
#ifNOT_USED
878878
s->startTime=GetCurrentAbsoluteTime();
879879
#endif
880-
s->startTime=GetCurrentAbsoluteTimeUsec(&(s->startTimeMsec));
880+
s->startTime=GetCurrentAbsoluteTimeUsec(&(s->startTimeUsec));
881881

882882
/*
883883
* initialize the various transaction subsystems

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp