summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorBruce Momjian2001-03-23 04:49:58 +0000
committerBruce Momjian2001-03-23 04:49:58 +0000
commit7cf952e7b4ad4d0d603ad13ab91f55c3ec41affe (patch)
tree21c9d56c3701e984573ecc3ff40e72c0f63d5baf /src/interfaces
parent4e911c847ce906094df6595700571b714d3bb537 (diff)
Fix comments that were mis-wrapped, for Tom Lane.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/lib/connect.c7
-rw-r--r--src/interfaces/libpq/fe-connect.c9
-rw-r--r--src/interfaces/odbc/info.c9
-rw-r--r--src/interfaces/odbc/options.c29
4 files changed, 34 insertions, 20 deletions
diff --git a/src/interfaces/ecpg/lib/connect.c b/src/interfaces/ecpg/lib/connect.c
index eac4fcc028e..5dc05ea7402 100644
--- a/src/interfaces/ecpg/lib/connect.c
+++ b/src/interfaces/ecpg/lib/connect.c
@@ -307,10 +307,11 @@ ECPGconnect(int lineno, const char *name, const char *user, const char *passwd,
if (strncmp(dbname + offset, "postgresql://", strlen("postgresql://")) == 0)
{
- /*
+ /*------
* new style:
- * <tcp|unix>:postgresql://server[:port|:/unixsocket/path:][/db
- * name][?options]
+ * <tcp|unix>:postgresql://server[:port|:/unixsocket/path:]
+ * [/db name][?options]
+ *------
*/
offset += strlen("postgresql://");
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 6d07cb667f7..dfa81c08221 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.162 2001/03/22 06:16:20 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.163 2001/03/23 04:49:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -582,10 +582,11 @@ update_db_info(PGconn *conn)
if (strncmp(conn->dbName + offset, "postgresql://", strlen("postgresql://")) == 0)
{
- /*
+ /*-------
* new style:
- * <tcp|unix>:postgresql://server[:port|:/unixsocket/path:][/db
- * name][?options]
+ * <tcp|unix>:postgresql://server[:port|:/unixsocket/path:]
+ * [/db name][?options]
+ *-------
*/
offset += strlen("postgresql://");
diff --git a/src/interfaces/odbc/info.c b/src/interfaces/odbc/info.c
index 764cb3a5889..e14a9d67ac9 100644
--- a/src/interfaces/odbc/info.c
+++ b/src/interfaces/odbc/info.c
@@ -1738,17 +1738,18 @@ SQLColumns(
set_tuplefield_string(&row->tuple[5], field_type_name);
- /*
+ /*----------
* Some Notes about Postgres Data Types:
*
* VARCHAR - the length is stored in the pg_attribute.atttypmod field
* BPCHAR - the length is also stored as varchar is
*
- * NUMERIC - the scale is stored in atttypmod as follows: precision =
- * ((atttypmod - VARHDRSZ) >> 16) & 0xffff scale = (atttypmod
- * - VARHDRSZ) & 0xffff
+ * NUMERIC - the scale is stored in atttypmod as follows:
*
+ * precision =((atttypmod - VARHDRSZ) >> 16) & 0xffff
+ * scale = (atttypmod - VARHDRSZ) & 0xffff
*
+ *----------
*/
qlog("SQLColumns: table='%s',field_name='%s',type=%d,sqltype=%d,name='%s'\n",
table_name, field_name, field_type, pgtype_to_sqltype, field_type_name);
diff --git a/src/interfaces/odbc/options.c b/src/interfaces/odbc/options.c
index 3dc3a40c7de..85844ede3bc 100644
--- a/src/interfaces/odbc/options.c
+++ b/src/interfaces/odbc/options.c
@@ -81,16 +81,27 @@ set_statement_option(ConnectionClass *conn,
stmt->options.scroll_concurrency = vParam;
break;
- /*
- * if (globals.lie) { if (conn)
- * conn->stmtOptions.scroll_concurrency = vParam; if (stmt)
- * stmt->options.scroll_concurrency = vParam; } else {
- *
- * if (conn) conn->stmtOptions.scroll_concurrency =
- * SQL_CONCUR_READ_ONLY; if (stmt)
- * stmt->options.scroll_concurrency = SQL_CONCUR_READ_ONLY;
+ /*----------
+ * if (globals.lie)
+ * {
+ * if (conn)
+ * conn->stmtOptions.scroll_concurrency = vParam;
+ * if (stmt)
+ * stmt->options.scroll_concurrency = vParam;
+ * } else {
+ * if (conn)
+ * conn->stmtOptions.scroll_concurrency =
+ * SQL_CONCUR_READ_ONLY;
+ * if (stmt)
+ * stmt->options.scroll_concurrency =
+ * SQL_CONCUR_READ_ONLY;
*
- * if (vParam != SQL_CONCUR_READ_ONLY) changed = TRUE; } break;
+ * if (vParam != SQL_CONCUR_READ_ONLY)
+ * changed = TRUE;
+ * }
+ * break;
+ * }
+ *----------
*/
case SQL_CURSOR_TYPE: