MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_issue_1206

Method test_issue_1206

pymysql/tests/test_issues.py:502–520  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

500 self.assertTrue(isinstance(row[0], bytes))
501
502 def test_issue_1206(self):
503 conn = pymysql.connect(charset="utf8", **self.databases[0])
504
505 cur = conn.cursor()
506 cur.execute("DROP PROCEDURE IF EXISTS `foo.bar`")
507 try:
508 cur.execute(
509 dedent("""\
510 create procedure `foo.bar` (arg1 int)
511 begin
512 select arg1*2;
513 end
514 """)
515 )
516
517 cur.callproc("foo.bar", args=(123,))
518 self.assertEqual(cur.fetchone()[0], 246)
519 finally:
520 cur.execute("DROP PROCEDURE IF EXISTS `foo.bar`")

Callers

nothing calls this directly

Calls 5

cursorMethod · 0.80
executeMethod · 0.80
callprocMethod · 0.80
connectMethod · 0.45
fetchoneMethod · 0.45

Tested by

no test coverage detected