Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
48b54327
Commit
48b54327
authored
Jul 01, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include tests for DateStyle output format variations.
parent
3ded6fd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
src/test/regress/sql/horology.sql
src/test/regress/sql/horology.sql
+58
-0
No files found.
src/test/regress/sql/horology.sql
View file @
48b54327
...
...
@@ -147,3 +147,61 @@ RESET DateStyle;
SHOW
DateStyle
;
--
-- formats
--
SET
DateStyle
TO
'US,Postgres'
;
SHOW
DateStyle
;
SELECT
''
AS
sixty_two
,
d1
AS
us_postgres
FROM
DATETIME_TBL
;
SELECT
''
AS
eight
,
f1
AS
us_postgres
FROM
ABSTIME_TBL
;
SET
DateStyle
TO
'US,ISO'
;
SELECT
''
AS
sixty_two
,
d1
AS
us_iso
FROM
DATETIME_TBL
;
SELECT
''
AS
eight
,
f1
AS
us_iso
FROM
ABSTIME_TBL
;
SET
DateStyle
TO
'US,SQL'
;
SHOW
DateStyle
;
SELECT
''
AS
sixty_two
,
d1
AS
us_sql
FROM
DATETIME_TBL
;
SELECT
''
AS
eight
,
f1
AS
us_sql
FROM
ABSTIME_TBL
;
SET
DateStyle
TO
'European,Postgres'
;
SHOW
DateStyle
;
INSERT
INTO
DATETIME_TBL
VALUES
(
'13/06/1957'
);
SELECT
count
(
*
)
as
one
FROM
DATETIME_TBL
WHERE
d1
=
'Jun 13 1957'
;
SELECT
''
AS
sixty_three
,
d1
AS
european_postgres
FROM
DATETIME_TBL
;
SELECT
''
AS
eight
,
f1
AS
european_postgres
FROM
ABSTIME_TBL
;
SET
DateStyle
TO
'European,ISO'
;
SHOW
DateStyle
;
SELECT
''
AS
sixty_three
,
d1
AS
european_iso
FROM
DATETIME_TBL
;
SELECT
''
AS
eight
,
f1
AS
european_iso
FROM
ABSTIME_TBL
;
SET
DateStyle
TO
'European,SQL'
;
SHOW
DateStyle
;
SELECT
''
AS
sixty_three
,
d1
AS
european_sql
FROM
DATETIME_TBL
;
SELECT
''
AS
eight
,
f1
AS
european_sql
FROM
ABSTIME_TBL
;
RESET
DateStyle
;
SHOW
DateStyle
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment