From 17849fd04aebdcaa53634650363ee65307846054 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 5 Jan 2000 18:23:53 +0000 Subject: [PATCH] Fix it's and its to be correct. --- convert.c | 6 +++--- drvconn.c | 2 +- info.c | 4 ++-- parse.c | 4 ++-- pgtypes.c | 2 +- results.c | 2 +- statement.c | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/convert.c b/convert.c index 4355fdf..09d27d3 100644 --- a/convert.c +++ b/convert.c @@ -347,7 +347,7 @@ char tempBuf[TEXT_FIELD_SIZE+5]; } else { - /* for SQL_C_CHAR, its probably ok to leave currency symbols in. But + /* for SQL_C_CHAR, it's probably ok to leave currency symbols in. But to convert to numeric types, it is necessary to get rid of those. */ if (field_type == PG_TYPE_MONEY) @@ -626,7 +626,7 @@ int lobj_fd, retval; memcpy(&new_statement[npos], esc, strlen(esc)); npos += strlen(esc); } - else { /* its not a valid literal so just copy */ + else { /* it's not a valid literal so just copy */ *end = '}'; new_statement[npos++] = old_statement[opos]; continue; @@ -680,7 +680,7 @@ int lobj_fd, retval; continue; } - /* If no buffer, and its not null, then what the hell is it? + /* If no buffer, and it's not null, then what the hell is it? Just leave it alone then. */ if ( ! buffer) { diff --git a/drvconn.c b/drvconn.c index c9a98cc..2618747 100644 --- a/drvconn.c +++ b/drvconn.c @@ -157,7 +157,7 @@ dialog: } /* Password is not a required parameter unless authentication asks for it. - For now, I think its better to just let the application ask over and over until + For now, I think it's better to just let the application ask over and over until a password is entered (the user can always hit Cancel to get out) */ if( ci->username[0] == '\0' || diff --git a/info.c b/info.c index 84092b9..8f63071 100644 --- a/info.c +++ b/info.c @@ -1373,8 +1373,8 @@ ConnInfo *ci; /* Only show oid if option AND there are other columns AND - its not being called by SQLStatistics . - Always show OID if its a system table + it's not being called by SQLStatistics . + Always show OID if it's a system table */ if (result != SQL_ERROR && ! stmt->internal) { diff --git a/parse.c b/parse.c index 78abaf3..3920116 100644 --- a/parse.c +++ b/parse.c @@ -447,7 +447,7 @@ RETCODE result; continue; } - /* otherwise, its probably an expression */ + /* otherwise, it's probably an expression */ in_expr = TRUE; fi[stmt->nfld-1]->expr = TRUE; fi[stmt->nfld-1]->name[0] = '\0'; @@ -523,7 +523,7 @@ RETCODE result; continue; } - /* its a dot, resolve to table or alias */ + /* it's a dot, resolve to table or alias */ else if (fi[i]->dot[0]) { for (k = 0; k < stmt->ntab; k++) { if ( ! stricmp(ti[k]->name, fi[i]->dot)) { diff --git a/pgtypes.c b/pgtypes.c index b3a9d94..5c02c4c 100644 --- a/pgtypes.c +++ b/pgtypes.c @@ -224,7 +224,7 @@ Int2 pgtype_to_sqltype(StatementClass *stmt, Int4 type) default: /* first, check to see if 'type' is in list. If not, look up with query. - Add oid, name to list. If its already in list, just return. + Add oid, name to list. If it's already in list, just return. */ if (type == stmt->hdbc->lobj_type) /* hack until permanent type is available */ return SQL_LONGVARBINARY; diff --git a/results.c b/results.c index ece49dd..4729112 100644 --- a/results.c +++ b/results.c @@ -692,7 +692,7 @@ mylog("SQLGetData: enter, stmt=%u\n", stmt); mylog(" value = '%s'\n", value); } } - else { /* its a SOCKET result (backend data) */ + else { /* it's a SOCKET result (backend data) */ if (stmt->currTuple == -1 || ! res || ! res->tupleField) { stmt->errormsg = "Not positioned on a valid row for GetData."; stmt->errornumber = STMT_INVALID_CURSOR_STATE_ERROR; diff --git a/statement.c b/statement.c index a5fc148..da71600 100644 --- a/statement.c +++ b/statement.c @@ -783,7 +783,7 @@ QueryInfo qi; self->status = STMT_EXECUTING; - // If its a SELECT statement, use a cursor. + // If it's a SELECT statement, use a cursor. // Note that the declare cursor has already been prepended to the statement // in copy_statement... if (self->statement_type == STMT_TYPE_SELECT) { @@ -822,7 +822,7 @@ QueryInfo qi; } else { // not a SELECT statement so don't use a cursor - mylog(" its NOT a select statement: stmt=%u\n", self); + mylog(" it's NOT a select statement: stmt=%u\n", self); self->result = CC_send_query(conn, self->stmt_with_params, NULL); // If we are in autocommit, we must send the commit. -- 2.39.5