Fix comments that were mis-wrapped, for Tom Lane.
authorBruce Momjian <bruce@momjian.us>
Fri, 23 Mar 2001 04:49:58 +0000 (04:49 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 23 Mar 2001 04:49:58 +0000 (04:49 +0000)
info.c
options.c

diff --git a/info.c b/info.c
index 764cb3a58890552d1688910d0eff46ccb2a8cb36..e14a9d67ac982e60df48e8938c5b23a71c7df294 100644 (file)
--- a/info.c
+++ b/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);
index 3dc3a40c7deeed28f9937c13517d485b7b4b477a..85844ede3bc3071b93cef05f90c3547796ff55d0 100644 (file)
--- a/options.c
+++ b/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: