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
3cd9399d
Commit
3cd9399d
authored
Apr 18, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change docs to do 20! rather than larger.
parent
af03e2ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
doc/src/sgml/typeconv.sgml
doc/src/sgml/typeconv.sgml
+3
-3
src/interfaces/python/pgdb.py
src/interfaces/python/pgdb.py
+3
-3
No files found.
doc/src/sgml/typeconv.sgml
View file @
3cd9399d
...
...
@@ -435,7 +435,7 @@ On the other hand, the postfix operator <literal>!</> (factorial)
is defined only for integer data types, not for float8. So, if we
try a similar case with <literal>!</>, we get:
<screen>
tgl=> select text '
44
' ! as "factorial";
tgl=> select text '
20
' ! as "factorial";
ERROR: Unable to identify a postfix operator '!' for type 'text'
You may need to add parentheses or an explicit cast
</screen>
...
...
@@ -443,10 +443,10 @@ This happens because the system can't decide which of the several
possible <literal>!</> operators should be preferred. We can help
it out with an explicit cast:
<screen>
tgl=> select cast(text '
44
' as int8) ! as "factorial";
tgl=> select cast(text '
20
' as int8) ! as "factorial";
factorial
---------------------
2
673996885588443136
2
432902008176640000
(1 row)
</screen>
</para>
...
...
src/interfaces/python/pgdb.py
View file @
3cd9399d
...
...
@@ -337,7 +337,7 @@ class pgdbCnx:
### module interface
# connects to a database
def
connect
(
dsn
=
None
,
user
=
None
,
password
=
None
,
host
=
None
,
database
=
None
):
def
connect
(
dsn
=
None
,
user
=
None
,
password
=
None
,
x
host
=
None
,
database
=
None
):
# first get params from DSN
dbport
=
-
1
dbhost
=
""
...
...
@@ -364,9 +364,9 @@ def connect(dsn = None, user = None, password = None, host = None, database = No
dbpasswd
=
password
if
database
!=
None
:
dbbase
=
database
if
host
!=
None
:
if
x
host
!=
None
:
try
:
params
=
string
.
split
(
host
,
":"
)
params
=
string
.
split
(
x
host
,
":"
)
dbhost
=
params
[
0
]
dbport
=
int
(
params
[
1
])
except
:
...
...
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