You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: source/ddbc/drivers/mysqlddbc.d
+15
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,11 @@ private:
119
119
120
120
public:
121
121
122
+
// db connections are DialectAware
123
+
override Dialect getDialect() {
124
+
return Dialect.MYSQL5; // TODO: add support for MySQL8
125
+
}
126
+
122
127
voidlock() {
123
128
mutex.lock();
124
129
}
@@ -306,6 +311,11 @@ private:
306
311
bool closed;
307
312
308
313
public:
314
+
// statements are DialectAware
315
+
override Dialect getDialect() {
316
+
return conn.getDialect();
317
+
}
318
+
309
319
voidcheckClosed() {
310
320
enforce!SQLException(!closed, "Statement is already closed");
311
321
}
@@ -447,6 +457,11 @@ class MySQLPreparedStatement : MySQLStatement, PreparedStatement {
447
457
}
448
458
public:
449
459
460
+
// prepared statements are DialectAware
461
+
override Dialect getDialect() {
462
+
return conn.getDialect();
463
+
}
464
+
450
465
/// Retrieves a ResultSetMetaData object that contains information about the columns of the ResultSet object that will be returned when this PreparedStatement object is executed.
enforce!SQLException(!closed, "Statement is already closed");
594
599
}
595
600
@@ -988,6 +993,11 @@ version (USE_ODBC)
988
993
989
994
public:
990
995
996
+
// prepared statements are DialectAware
997
+
override Dialect getDialect() {
998
+
return conn.getDialect();
999
+
}
1000
+
991
1001
/// Retrieves a ResultSetMetaData object that contains information about the columns of the ResultSet object that will be returned when this PreparedStatement object is executed.
0 commit comments