Changeset combined,3 for combined/src/test/test-mysql.lisp
- Timestamp:
- 12/07/2007 02:13:22 PM (19 years ago)
- revision id:
- svn-v3-trunk1:1c22b0a8-4d0b-0410-a296-af6a2e6f35e3:plain-odbc%2Ftrunk:8
- File:
-
- 1 edited
-
combined/src/test/test-mysql.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
combined/src/test/test-mysql.lisp
r1 r3 12 12 (mysql-test4 con) 13 13 (mysql-test5 con) 14 (mysql-test6 con) 14 15 ) 15 16 … … 186 187 (commit con) 187 188 ) 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 " 204 CREATE 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.
