Commit 4888ffaa authored by panos's avatar panos Committed by Jérome Perrin

Bug fixed in the example

parent 392b3328
...@@ -26,21 +26,13 @@ from Transformations import BasicTransformations ...@@ -26,21 +26,13 @@ from Transformations import BasicTransformations
from DistributionFitting import DistFittest from DistributionFitting import DistFittest
from DistributionFitting import Distributions from DistributionFitting import Distributions
from ExcelOutput import Output from ExcelOutput import Output
import pyodbc
import json
import ConnectToDatabase import ConnectToDatabase
import json
#================================= Extract data from the database ==========================================# #================================= Extract data from the database ==========================================#
# cnxn =pyodbc.connect("Driver={MySQL ODBC 3.51 Driver};SERVER=localhost; PORT=3306;DATABASE=test_database;UID=root; PASSWORD=Pitheos10;")
# cursor1 = cnxn.cursor()
# cursors[1] = cnxn.cursor()
# cursor3 = cnxn.cursor()
cnxn=ConnectToDatabase.ConnectionData(seekName='ServerData', implicitExt='txt', number_of_cursors=3) cnxn=ConnectToDatabase.ConnectionData(seekName='ServerData', implicitExt='txt', number_of_cursors=3)
cursors=cnxn.getCursors() cursors=cnxn.getCursors()
print cursors
a = cursors[0].execute(""" a = cursors[0].execute("""
select prod_code, stat_code,emp_no, TIMEIN, TIMEOUT select prod_code, stat_code,emp_no, TIMEIN, TIMEOUT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment