} 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)
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;
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) {
}
/* 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' ||
/* 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) {
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';
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)) {
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;
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;
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) {
}
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.