SQLFetch fetches a row of data from a result set. The driver returns data for all columns that were bound to storage locations with SQLBindCol.
The following table describes the SQLSTATE and error values for SQLFetch.
| SQLSTATE | Error Value | Error Message |
|---|---|---|
| 01000 | -11001 | General warning |
| 01004 | -11003 | Data truncated |
| 07006 | -11013 | Restricted data-type attribute violation |
| 08S01 | -11020 | Communication-link failure |
| 22002 | -11024 | Indicator value required but not supplied |
| 22003 | -11025 | Numeric value out of range |
| 22005 | -11026 | Error in assignment |
| 22008 | -11027 | Datetime field overflow |
| 22012 | -11028 | Division by zero |
| 24000 | -11031 | Invalid cursor state |
| 40001 | -11037 | Serialization failure |
| S1000 | -11060 | General error |
| S1001 | -11061 | Memory-allocation failure |
| S1002 | -11062 | Invalid column number |
| S1008 | -11065 | Operation canceled |
| S1010 | -11067 | Function-sequence error |
| S1C00 | -11092 | Driver not capable |
| S1T00 | -11094 | Time-out expired |