Skip to content

Commit 1449b2c

Browse files
committed
Change Method of Execution
1 parent 75fbfa0 commit 1449b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PySql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, username, userPassword):
1515

1616
########## Database Stuffs ##########
1717
def useDatabase(self, databaseName):
18-
self.__safeExecution(f"USE {databaseName}", "Using Database")
18+
self.__safeExecution(f"USE {databaseName}", "Database Using")
1919

2020
def createDatabase(self, databaseName):
2121
self.__safeExecution(f"CREATE DATABASE{databaseName}", "Database Creation")
@@ -25,5 +25,5 @@ def __safeExecution(self, command, typeOfCommand="Unknown"):
2525
try:
2626
self.cursor.execute(command)
2727
except:
28-
print(f"Problem doing {typeOfCommand}");
28+
print(f"Problem: {typeOfCommand}");
2929
exit(-1)

0 commit comments

Comments
 (0)