Hey there, was wondering if anyone could help a newbie on SQL and Python. I thought I had a pretty decent grasp of it, however something odd happened recently.
Here is the the following code snipped from a larger portion:
try:
self.db.query("SELECT * FROM account WHERE email = '{0}' AND pass = '{1}'".format(self.mail.strip(self.bchars),self.pw.strip(self.bchars)))
except MySQLdb.Error, e:
print "Error %d: %s" % (e.args[0], e.args[1])
exists = self.db.store_result().fetch_row()
print "EXISTS",exists
It use to print this:
EXISTS ((2, '[email protected]', '1234', 1, 0, 2161, '192.168.1.47', 0),)
Now, it prints this: It use to print this:
EXISTS ((2L, '[email protected]', '1234', 1L, 0L, 2161, '192.168.1.47', 0L),)
I have no idea where these L's came from. I checked the SQL Database and even reloaded it to be sure. I have reverted all my code for the last day (where all was functioning), but still can't find a solution. I have also tried searching, but I am not even sure what this problem is even called so it's hard to search. Thanks for any help or information anyone can provide.