~ubuntu-branches/ubuntu/natty/edbrowse/natty

« back to all changes in this revision

Viewing changes to src/dbodbc.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-11-29 12:06:07 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101129120607-murkfny32efpr1nx
Tags: 3.4.5-0ubuntu1
* New upstream release
* Convert to source format 3.0
  - add debian/format/source
* Update for xulrunner-2.0
  - update debian/control
  - add debian/patches/spidermonkey-2.0.patch for the JSNative changes
  - add debian/patches/series
* Don't call the xulrunner binary to find libmozjs
  - update debian/edbrowse.sh
* Pass -lcrypto and -lreadline to the linker
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    DRIVER_POSTGRESQL,
36
36
    DRIVER_INFORMIX,
37
37
    DRIVER_TDS,
38
 
    DRIVER_SYBASE,
39
38
    DRIVER_ORACLE,
40
39
    DRIVER_DB2,
41
40
};
1745
1744
 
1746
1745
 
1747
1746
void
1748
 
getPrimaryKey(char *tname, int *part1, int *part2, int *part3)
 
1747
getPrimaryKey(char *tname, int *part1, int *part2, int *part3, int *part4)
1749
1748
{
1750
1749
    int keyindex;
1751
1750
    SQLLEN pcbValue;
1752
1751
    char *dot;
1753
1752
 
1754
 
    *part1 = *part2 = *part3 = 0;
 
1753
    *part1 = *part2 = *part3 = *part4 = 0;
1755
1754
    newStatement();
1756
1755
    stmt_text = "get primary key";
1757
1756
    debugStatement();
1795
1794
        goto abort;
1796
1795
    *part3 = keyindex;
1797
1796
 
 
1797
    rc = SQLFetch(hstmt);
 
1798
    if(rc == SQL_NO_DATA)
 
1799
        goto done;
 
1800
    if(rc)
 
1801
        goto abort;
 
1802
    *part4 = keyindex;
 
1803
 
1798
1804
    goto done;
1799
1805
 
1800
1806
  abort:
1875
1881
       NULL, SQL_NTS, NULL, SQL_NTS, NULL, SQL_NTS,
1876
1882
       NULL, SQL_NTS,
1877
1883
       (dot ? tname : NULL), SQL_NTS, (dot ? dot : tname), SQL_NTS);
 
1884
    if(dot)
 
1885
        dot[-1] = '.';
1878
1886
    if(rc)
1879
1887
        goto abort;
1880
1888