Advertisement
mspadaru

CodeForce QtSql 5

Aug 19th, 2012
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def call_store_procedure():
  2.  
  3.     query = QtSql.QSqlQuery()
  4.  
  5.     query.prepare("CALL AsciiToInt(?, ?)")
  6.  
  7.     query.bindValue(0, "A")
  8.  
  9.     query.bindValue(1, 0, QtSql.QSql.Out)
  10.  
  11.     query.exec_()
  12.  
  13.     i = query.boundValue(1) # i is 65
  14.  
  15.     print i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement