summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/19-08-2011/inserttest.py
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/19-08-2011/inserttest.py')
-rw-r--r--For Weekly Test/19-08-2011/inserttest.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/For Weekly Test/19-08-2011/inserttest.py b/For Weekly Test/19-08-2011/inserttest.py
deleted file mode 100644
index 3e75d46..0000000
--- a/For Weekly Test/19-08-2011/inserttest.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-import MySQLdb as mdb
-import sys
-
-try:
- conn = mdb.connect('localhost', 'root', 'randompasswordSQL', 'gsmselftesting')
-
- cursor = conn.cursor()
-
- cursor.execute("INSERT INTO TempTaskTable(`taskID`, `taskNo`, `from`, `to`,`status` ) VALUES('1', '2', 'sip', 'GSMExt.O2', '0')")
- cursor.execute("INSERT INTO TempTaskTable(`taskID`, `taskNo`, `from`, `to`,`status` ) VALUES('2', '2', 'sip', 'GSMExt.Voda', '0')")
- cursor.execute("INSERT INTO TempTaskTable(`taskID`, `taskNo`, `from`, `to`,`status` ) VALUES('3', '2', 'sip', 'GSMExt.Tm', '0')")
- cursor.execute("INSERT INTO TempTaskTable(`taskID`, `taskNo`, `from`, `to`,`status` ) VALUES('4', '2', 'sip', 'GSMExt.Eplus', '0')")
-
- conn.commit()
-
- cursor.close()
- conn.close()
-
-except mdb.Error, e:
-
- print "Error %d: %s" % (e.args[0],e.args[1])
- sys.exit(1)