Ignore:
Timestamp:
12/07/2007 02:13:22 PM (19 years ago)
Author:
raverkamp
revision id:
svn-v3-trunk1:1c22b0a8-4d0b-0410-a296-af6a2e6f35e3:plain-odbc%2Ftrunk:8
Message:

included changes for 64 bit linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • error-handling/src/test/test-mysql.lisp

    r1 r2.1.1  
    1212  (mysql-test4 con)
    1313  (mysql-test5 con)
     14  (mysql-test6 con)
    1415  )
    1516
     
    186187    (commit con)
    187188    )
     189
     190
     191(defun mysql-drop-test-proc (con proc)
     192  (unless (zerop (caar (exec-query con (format nil
     193                                               "
     194    select count(*)
     195    from information_schema.routines
     196    where routine_name ='~A'
     197    and routine_schema='test'" proc))))
     198    (exec-command con (format nil "drop procedure ~A" proc))))
     199
     200
     201(defun mysql-test6 (con)
     202  (mysql-drop-test-proc con "test99")
     203  (exec-command con "
     204CREATE PROCEDURE test99 (in p1 int, out p2 INT)
     205     BEGIN
     206       set p2=p1+5;
     207     END;")
     208  (commit con)
     209  (pprint
     210  (let ((stm (prepare-statement con "{call test.test99(?,?)}"
     211                                '(:integer :in)
     212                                '(:integer :out))))
     213    (assert (= 6 (first (exec-prepared-command stm 1))))
     214    (free-statement stm)))
Note: See TracChangeset for help on using the changeset viewer.