개정판 833bd7ff
debug
Change-Id: Ifb64680c5f4cbeb033e53020b4f1f4b9efc12d9f
DTI_PID/DTI_PID/AppDatabase.py | ||
---|---|---|
81 | 81 |
|
82 | 82 |
def connect(self): |
83 | 83 |
""" return database connection depends on database type """ |
84 |
import traceback |
|
84 |
#import traceback
|
|
85 | 85 |
|
86 | 86 |
conn = None |
87 | 87 |
if self._DBType == 'SQLite': |
... | ... | |
91 | 91 |
conn = pymssql.connect(host=self._host, user=self._user, password=self._password, database=self.db_name, |
92 | 92 |
port=self._port, charset='utf8', autocommit=False, as_dict=True) |
93 | 93 |
|
94 |
print(traceback.format_stack(None, -14)[-1].split('\n')[-2].strip()) |
|
94 |
#print(traceback.format_stack(None, -14)[-1].split('\n')[-2].strip())
|
|
95 | 95 |
|
96 | 96 |
return conn |
97 | 97 |
|
내보내기 Unified diff