Commits

Shu Zong Chen  committed 863bc81

did NUMEQUALTO

  • Participants
  • Parent commits dee4cbc

Comments (0)

Files changed (2)

File simpledb/__init__.py

 			f = getattr(self.db, 'DO_' + cmd)
 			try:
 				v = f(*args)
-				if v:
+				if v is not None:
 					print v
 			except TypeError:
 				print "INCORRECT NUM OF ARGS FOR CMD: {0}".format(cmd)

File simpledb/engine.py

 		del self.d[name]
 
 	def DO_NUMEQUALTO(self, name):
-		pass
+		return self.c[name]
 
 	def DO_END(self):
 		raise StopProgram