~ubuntu-branches/ubuntu/trusty/psqlodbc/trusty-proposed

« back to all changes in this revision

Viewing changes to pgapi30.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2011-04-05 14:48:23 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110405144823-n77supsa1hjj0ik6
Tags: 1:09.00.0200-1
* New upstream release.
* Fix installing {A,W}/usr/lib/odbc.  Closes: #618210.
* Convert to 3.0 (quilt).
* Remove psqlodbc-580878.diff: implemented upstream.
* Remove psqlodbc-585476.diff: was caused by #519006 which is now closed.
* Update description, suggested by Martin Eberhard Schauer.
  Closes: #565611.
* New maintainer.  Closes: #472818.

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
                        SQLINTEGER Attribute, PTR Value,
399
399
                        SQLINTEGER BufferLength, SQLINTEGER *StringLength)
400
400
{
401
 
        CSTR func = "PGAPI_GetConnectAttr";
402
401
        ConnectionClass *conn = (ConnectionClass *) ConnectionHandle;
403
402
        RETCODE ret = SQL_SUCCESS;
404
403
        SQLINTEGER      len = 4;
1867
1866
                        SC_get_IRDF(stmt)->rowsFetched = (SQLULEN *) Value;
1868
1867
                        break;
1869
1868
                case SQL_ATTR_ROW_ARRAY_SIZE:   /* 27 */
1870
 
                        SC_get_ARDF(stmt)->size_of_rowset = (SQLULEN) Value;
 
1869
                        SC_get_ARDF(stmt)->size_of_rowset = CAST_UPTR(SQLULEN, Value);
1871
1870
                        break;
1872
1871
                default:
1873
1872
                        return PGAPI_SetStmtOption(StatementHandle, (SQLUSMALLINT) Attribute, (SQLULEN) Value);
1981
1980
        if (SQL_FETCH_BY_BOOKMARK != s.operation)
1982
1981
        {
1983
1982
                conn = SC_get_conn(s.stmt);
1984
 
                if (s.auto_commit_needed = (char) CC_is_in_autocommit(conn), s.auto_commit_needed)
 
1983
                if (s.auto_commit_needed = (char) CC_does_autocommit(conn), s.auto_commit_needed)
1985
1984
                        CC_set_autocommit(conn, FALSE);
1986
1985
        }
1987
1986
        if (SQL_ADD != s.operation)