pike.git/
lib/
modules/
Sql.pmod/
pgsql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2016-02-17
2016-02-17 18:57:19 by Stephen R. van den Berg <srb@cuci.nl>
a08aebc993553ad998a75b2b93a9b0bca89c8217 (
12
lines) (+
3
/-
9
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Simplify code.
1267:
_readyforquerycount=1; _waittocommit=0; qportals->write(1);
-
if(!getsocket())
{
-
string msg=sprintf
("Couldn't connect to database on %s:%
d
",_host,_port);
-
if(force) {
-
if(!sizeof(lastmessage) || lastmessage[sizeof(lastmessage)-1]!=msg)
-
lastmessage+=({msg});
-
return 0;
-
} else
-
ERROR(msg+"\n");
-
}
+
if(!
(c=
getsocket())
)
+
ERROR
("Couldn't connect to database on %s:%
d\n
",_host,_port);
_runtimeparameter=([]); _unnamedportalmux=Thread.Mutex(); unnamedstatement=Thread.Mutex();