mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Fix comments that were mis-wrapped, for Tom Lane.
This commit is contained in:
@@ -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://");
|
||||
|
||||
|
||||
@@ -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://");
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 (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 (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:
|
||||
|
||||
Reference in New Issue
Block a user