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

Commit3cd9399

Browse files
committed
Change docs to do 20! rather than larger.
1 parentaf03e2e commit3cd9399

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎doc/src/sgml/typeconv.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,18 +435,18 @@ On the other hand, the postfix operator <literal>!</> (factorial)
435435
is defined only for integer data types, not for float8. So, if we
436436
try a similar case with <literal>!</>, we get:
437437
<screen>
438-
tgl=> select text '44' ! as "factorial";
438+
tgl=> select text '20' ! as "factorial";
439439
ERROR: Unable to identify a postfix operator '!' for type 'text'
440440
You may need to add parentheses or an explicit cast
441441
</screen>
442442
This happens because the system can't decide which of the several
443443
possible <literal>!</> operators should be preferred. We can help
444444
it out with an explicit cast:
445445
<screen>
446-
tgl=> select cast(text '44' as int8) ! as "factorial";
446+
tgl=> select cast(text '20' as int8) ! as "factorial";
447447
factorial
448448
---------------------
449-
2673996885588443136
449+
2432902008176640000
450450
(1 row)
451451
</screen>
452452
</para>

‎src/interfaces/python/pgdb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def cursor(self):
337337
### module interface
338338

339339
# connects to a database
340-
defconnect(dsn=None,user=None,password=None,host=None,database=None):
340+
defconnect(dsn=None,user=None,password=None,xhost=None,database=None):
341341
# first get params from DSN
342342
dbport=-1
343343
dbhost=""
@@ -364,9 +364,9 @@ def connect(dsn = None, user = None, password = None, host = None, database = No
364364
dbpasswd=password
365365
ifdatabase!=None:
366366
dbbase=database
367-
ifhost!=None:
367+
ifxhost!=None:
368368
try:
369-
params=string.split(host,":")
369+
params=string.split(xhost,":")
370370
dbhost=params[0]
371371
dbport=int(params[1])
372372
except:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp