Changeset combined,9 for combined


Ignore:
Timestamp:
08/06/2008 03:19:47 AM (18 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
combined
parents:
RevTreeChgset
8@combined,8[combined,8]
2.2.7@combined,2.2.7[combined,2.2.7]
revision id:
dsowen@fugue88.ws-20080806031947-zpi6unkpsh25hutd
Message:

Merged from error-handling

Location:
combined
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • combined/plain-odbc.asd

    r5 r2.2.5  
    1111                         (:file "ffi-support")
    1212                         (:file "odbc-ff-interface")
     13                         (:file "error-base")
     14                         (:file "error-defs")
    1315                         (:file "odbc-functions")
    1416                         (:file "parameter")
  • combined/src/odbc/odbc-functions.lisp

    r2.1.14 r9  
    8888        (declare (ignore msg-length))
    8989        (values result-code
    90                 (make-condition
    9190                 (if (eql result-code #.$SQL_SUCCESS_WITH_INFO)
    92                    'sql-warning
    93                    'sql-error)
    94                  :error-message error-message
    95                  :sql-state sql-state
    96                  :error-code error-code))))
     91                   (make-condition
     92                    'sql-warning
     93                    :error-message error-message
     94                    :sql-state sql-state
     95                    :error-code error-code)
     96                   (make-error sql-state error-message)))))
    9797    ; this can happen, using  a wrong handle
    9898    (#.$SQL_INVALID_HANDLE
     
    109109    (otherwise (error "unknown result of odbc execution: ~A" result-code))
    110110    ))
     111
    111112
    112113
  • combined/src/odbc/plain-odbc-package.lisp

    r5 r2.2.5  
    1414; #+mcl "CCL" #+cormanlisp "WIN32" "CFFI")
    1515  (:export
     16   "PRINT-ODBC-ERROR"
     17   "ODBC-ERROR"
     18   "ERROR-MESSAGE"
     19   "ERROR-CODE"
     20
    1621   "EXEC-SQL"
    1722   "EXEC-QUERY"
Note: See TracChangeset for help on using the changeset viewer.