本人连接gbase8a 数据库出现错误
django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your GBase server version for the right syntax to use near 'SET SES
SION TRANSACTION ISOLATION LEVEL READ COMMITTED' at line 1")
解决办法
setting里面DATABASES 加上 'OPTIONS': {'isolation_level':None}
DATABASES = {
'default': {
'ENGINE':'django.db.backends.mysql',
'NAME':'bigdata',
'USER':'program_a',
'PASSWORD':'ssdd',
'HOST':'0.0.0.0',
'PORT':'5258',
'OPTIONS': {'isolation_level':None}
}
}