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
37b006e0
Commit
37b006e0
authored
May 16, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add NUMERIC tests to jdbc code.
David Esposito
parent
863c9d11
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
3 deletions
+28
-3
contrib/retep/build.xml
contrib/retep/build.xml
+2
-1
src/interfaces/jdbc/build.xml
src/interfaces/jdbc/build.xml
+2
-2
src/interfaces/jdbc/org/postgresql/jdbc1/ResultSetMetaData.java
...terfaces/jdbc/org/postgresql/jdbc1/ResultSetMetaData.java
+12
-0
src/interfaces/jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
...terfaces/jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
+12
-0
No files found.
contrib/retep/build.xml
View file @
37b006e0
...
...
@@ -2,7 +2,7 @@
build file to build the donated retep tools packages
$Id: build.xml,v 1.
5 2001/05/16 16:20:51
momjian Exp $
$Id: build.xml,v 1.
6 2001/05/16 17:09:25
momjian Exp $
-->
...
...
@@ -43,6 +43,7 @@
<target
name=
"compile"
depends=
"checks,prepare,warning"
if=
"jdk1.2+"
>
<javac
srcdir=
"${src}"
destdir=
"${dest}"
>
<include
name=
"${package}/**"
/>
<exclude
name=
"${package}/**"
unless=
"jdk1.2+"
/>
</javac>
</target>
...
...
src/interfaces/jdbc/build.xml
View file @
37b006e0
...
...
@@ -3,7 +3,7 @@
build file to allow ant (http://jakarta.apache.org/ant/) to be used
to build the PostgreSQL JDBC Driver.
$Id: build.xml,v 1.
9 2001/05/16 16:20:52
momjian Exp $
$Id: build.xml,v 1.
10 2001/05/16 17:09:26
momjian Exp $
-->
...
...
@@ -120,7 +120,7 @@
<javac
srcdir=
"${src}"
destdir=
"${dest}"
>
<include
name=
"example/**"
/>
<exclude
name=
"example/corba/**"
/>
<exclude
name=
"example/blobtest.java"
unless=
"jdk1.2+"
/>
<exclude
name=
"example/blobtest.java"
unless=
"jdk1.2+"
/>
</javac>
</target>
...
...
src/interfaces/jdbc/org/postgresql/jdbc1/ResultSetMetaData.java
View file @
37b006e0
...
...
@@ -290,6 +290,12 @@ public class ResultSetMetaData implements java.sql.ResultSetMetaData
return
16
;
case
Types
.
VARCHAR
:
return
0
;
case
Types
.
NUMERIC
:
Field
f
=
getField
(
column
);
if
(
f
!=
null
)
return
((
0xFFFF0000
)&
f
.
mod
)>>
16
;
else
return
0
;
default
:
return
0
;
}
...
...
@@ -321,6 +327,12 @@ public class ResultSetMetaData implements java.sql.ResultSetMetaData
return
16
;
case
Types
.
VARCHAR
:
return
0
;
case
Types
.
NUMERIC
:
Field
f
=
getField
(
column
);
if
(
f
!=
null
)
return
(((
0x0000FFFF
)&
f
.
mod
)-
4
);
else
return
0
;
default
:
return
0
;
}
...
...
src/interfaces/jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
View file @
37b006e0
...
...
@@ -285,6 +285,12 @@ public class ResultSetMetaData implements java.sql.ResultSetMetaData
return
16
;
case
Types
.
VARCHAR
:
return
0
;
case
Types
.
NUMERIC
:
Field
f
=
getField
(
column
);
if
(
f
!=
null
)
return
((
0xFFFF0000
)&
f
.
mod
)>>
16
;
else
return
0
;
default
:
return
0
;
}
...
...
@@ -316,6 +322,12 @@ public class ResultSetMetaData implements java.sql.ResultSetMetaData
return
16
;
case
Types
.
VARCHAR
:
return
0
;
case
Types
.
NUMERIC
:
Field
f
=
getField
(
column
);
if
(
f
!=
null
)
return
(((
0x0000FFFF
)&
f
.
mod
)-
4
);
else
return
0
;
default
:
return
0
;
}
...
...
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