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
e2ba4ee2
Commit
e2ba4ee2
authored
Jul 08, 1998
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include tests for new 8-byte integer.
Include tests for HAVING clause.
parent
5e7beed3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
src/test/regress/sql/int8.sql
src/test/regress/sql/int8.sql
+27
-0
src/test/regress/sql/select_having.sql
src/test/regress/sql/select_having.sql
+7
-0
src/test/regress/sql/tests
src/test/regress/sql/tests
+2
-0
No files found.
src/test/regress/sql/int8.sql
0 → 100644
View file @
e2ba4ee2
--
-- Test int8 64-bit integers.
--
CREATE
TABLE
INT8_TBL
(
q1
int8
,
q2
int8
);
INSERT
INTO
INT8_TBL
VALUES
(
'123'
,
'456'
);
INSERT
INTO
INT8_TBL
VALUES
(
'123'
,
'4567890123456789'
);
INSERT
INTO
INT8_TBL
VALUES
(
'4567890123456789'
,
'123'
);
INSERT
INTO
INT8_TBL
VALUES
(
'4567890123456789'
,
'4567890123456789'
);
INSERT
INTO
INT8_TBL
VALUES
(
'4567890123456789'
,
'-4567890123456789'
);
SELECT
*
FROM
INT8_TBL
;
SELECT
''
AS
five
,
q1
AS
plus
,
-
q1
AS
minus
FROM
INT8_TBL
;
SELECT
''
AS
five
,
q1
,
q2
,
q1
+
q2
AS
plus
FROM
INT8_TBL
;
SELECT
''
AS
five
,
q1
,
q2
,
q1
-
q2
AS
minus
FROM
INT8_TBL
;
SELECT
''
AS
three
,
q1
,
q2
,
q1
*
q2
AS
multiply
FROM
INT8_TBL
WHERE
q1
<
1000
or
(
q2
>
0
and
q2
<
1000
);
SELECT
''
AS
five
,
q1
,
q2
,
q1
/
q2
AS
divide
FROM
INT8_TBL
;
SELECT
''
AS
five
,
q1
,
float8
(
q1
)
FROM
INT8_TBL
;
SELECT
''
AS
five
,
q2
,
float8
(
q2
)
FROM
INT8_TBL
;
SELECT
''
AS
five
,
q1
,
int8
(
float8
(
q1
))
AS
"two coercions"
FROM
INT8_TBL
;
SELECT
''
AS
five
,
2
*
q1
AS
"twice int4"
FROM
INT8_TBL
;
SELECT
''
AS
five
,
q1
*
2
AS
"twice int4"
FROM
INT8_TBL
;
src/test/regress/sql/select_having.sql
0 → 100644
View file @
e2ba4ee2
--
-- select_having.sql
--
SELECT
d1
,
count
(
*
)
FROM
DATETIME_TBL
GROUP
BY
d1
HAVING
count
(
*
)
>
1
;
src/test/regress/sql/tests
View file @
e2ba4ee2
...
...
@@ -6,6 +6,7 @@ text
strings
int2
int4
int8
oid
oidint2
oidint4
...
...
@@ -45,6 +46,7 @@ select
select_into
select_distinct
select_distinct_on
select_having
subselect
union
aggregates
...
...
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