summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-11-19 23:16:46 +0000
committerBruce Momjian <bruce@momjian.us>2001-11-19 23:16:46 +0000
commit09634eafe15e2c63bddcea104e36f27367bd2fa7 (patch)
tree4ee3c30059c3edc23bd18ef6babbc8b89dcc4f0a /src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
parent6c8120d68ced229111aeb1e45cb6aa3219e1e70b (diff)
downloadpostgresql-09634eafe15e2c63bddcea104e36f27367bd2fa7.tar.gz
Indent jdbc case labels using pgjindent.
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java')
-rw-r--r--src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java79
1 files changed, 39 insertions, 40 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java b/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
index 5f38d2f8dc..5c7850147f 100644
--- a/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
+++ b/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
@@ -61,7 +61,6 @@ public class Fastpath
// added Oct 7 1998 to give us thread safety
synchronized (stream)
{
-
// send the function call
try
{
@@ -105,52 +104,52 @@ public class Fastpath
//DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'");
switch (in)
{
- case 'V':
- break;
+ case 'V':
+ break;
- //------------------------------
- // Function returned properly
- //
- case 'G':
- int sz = stream.ReceiveIntegerR(4);
- //DriverManager.println("G: size="+sz); //debug
+ //------------------------------
+ // Function returned properly
+ //
+ case 'G':
+ int sz = stream.ReceiveIntegerR(4);
+ //DriverManager.println("G: size="+sz); //debug
- // Return an Integer if
- if (resulttype)
- result = new Integer(stream.ReceiveIntegerR(sz));
- else
- {
- byte buf[] = new byte[sz];
- stream.Receive(buf, 0, sz);
- result = buf;
- }
- break;
+ // Return an Integer if
+ if (resulttype)
+ result = new Integer(stream.ReceiveIntegerR(sz));
+ else
+ {
+ byte buf[] = new byte[sz];
+ stream.Receive(buf, 0, sz);
+ result = buf;
+ }
+ break;
- //------------------------------
- // Error message returned
- case 'E':
- throw new PSQLException("postgresql.fp.error", stream.ReceiveString(conn.getEncoding()));
+ //------------------------------
+ // Error message returned
+ case 'E':
+ throw new PSQLException("postgresql.fp.error", stream.ReceiveString(conn.getEncoding()));
- //------------------------------
- // Notice from backend
- case 'N':
- conn.addWarning(stream.ReceiveString(conn.getEncoding()));
- break;
+ //------------------------------
+ // Notice from backend
+ case 'N':
+ conn.addWarning(stream.ReceiveString(conn.getEncoding()));
+ break;
- //------------------------------
- // End of results
- //
- // Here we simply return res, which would contain the result
- // processed earlier. If no result, this already contains null
- case '0':
- //DriverManager.println("returning "+result);
- return result;
+ //------------------------------
+ // End of results
+ //
+ // Here we simply return res, which would contain the result
+ // processed earlier. If no result, this already contains null
+ case '0':
+ //DriverManager.println("returning "+result);
+ return result;
- case 'Z':
- break;
+ case 'Z':
+ break;
- default:
- throw new PSQLException("postgresql.fp.protocol", new Character((char)in));
+ default:
+ throw new PSQLException("postgresql.fp.protocol", new Character((char)in));
}
}
}