~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/prototest/drizzle_prototest

  • Committer: Lee Bieber
  • Date: 2011-02-22 15:49:52 UTC
  • mfrom: (2187.6.1 drizzle)
  • Revision ID: kalebral@gmail.com-20110222154952-9th3s2w8rogyqfvj
Merge Patrick - 722884: mysql_protocol.prototest is taking too long to execute  

Show diffs side-by-side

added added

removed removed

Lines of Context:
344
344
                        result.error_code == BAD_DB)
345
345
 
346
346
  def testRangeQuery(self):
347
 
    for x in common_range + range(1024*1024*2-20, 1024*1024*2+20):
 
347
    for x in common_range:
348
348
      data = QueryCommand(query="SELECT '" + 'x' * x + "'").pack()
349
349
      self.s.send(Packet(size=len(data), sequence=0).pack())
350
350
      try:
395
395
        return
396
396
 
397
397
  def testRangeResult(self):
398
 
    for x in common_range + range(1024*1024*2-20, 1024*1024*2+20):
 
398
    for x in common_range:
399
399
      data = QueryCommand(query="SELECT REPEAT('x', %s)" % x).pack()
400
400
      self.s.send(Packet(size=len(data), sequence=0).pack())
401
401
      self.s.send(data)