364772ed by 周伟奇

fix bug

1 parent 550d86c1
...@@ -98,9 +98,12 @@ DATABASES = { ...@@ -98,9 +98,12 @@ DATABASES = {
98 98
99 for db_setting in DATABASES.values(): 99 for db_setting in DATABASES.values():
100 db_setting['OPTIONS'] = { 100 db_setting['OPTIONS'] = {
101 'driver': 'ODBC Driver 17 for SQL Server' 101 'driver': 'ODBC Driver 17 for SQL Server',
102 'extra_params': "odbc_cursortype=2"
102 } 103 }
103 104
105 # set this to False if you want to turn off pyodbc's connection pooling
106 DATABASE_CONNECTION_POOLING = True
104 107
105 DATABASE_ROUTERS = ['settings.database.DBRouter'] 108 DATABASE_ROUTERS = ['settings.database.DBRouter']
106 # MYSQLPOOL_ARGUMENTS = database.MYSQLPOOL_ARGUMENTS 109 # MYSQLPOOL_ARGUMENTS = database.MYSQLPOOL_ARGUMENTS
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!