merge conflict

This commit is contained in:
Adam D. Ruppe 2018-02-20 09:33:47 -05:00
commit 7cf79f4155
1 changed files with 5 additions and 6 deletions

11
mysql.d
View File

@ -12,9 +12,9 @@
module arsd.mysql; module arsd.mysql;
version(MySQL_51) { //version(MySQL_51) {
// we good // we good
} else version(Less_Than_MySQL_51) { /*} else*/ version(Less_Than_MySQL_51) {
// we good // we good
} else { } else {
// default now is mysql 5.1 or up - it has been long // default now is mysql 5.1 or up - it has been long
@ -59,7 +59,7 @@ class MySqlResult : ResultSet {
this(MYSQL_RES* r, string sql) { this(MYSQL_RES* r, string sql) {
result = r; result = r;
itemsTotal = length(); itemsTotal = cast(int) length();
itemsUsed = 0; itemsUsed = 0;
this.sql = sql; this.sql = sql;
@ -196,13 +196,12 @@ class MySqlResult : ResultSet {
--- ---
+/ +/
class MySql : Database { class MySql : Database {
/// this(string host, string user, string pass, string db, uint port = 0) {
this(string host, string user, string pass, string db) {
mysql = enforceEx!(DatabaseException)( mysql = enforceEx!(DatabaseException)(
mysql_init(null), mysql_init(null),
"Couldn't init mysql"); "Couldn't init mysql");
enforceEx!(DatabaseException)( enforceEx!(DatabaseException)(
mysql_real_connect(mysql, toCstring(host), toCstring(user), toCstring(pass), toCstring(db), 0, null, 0), mysql_real_connect(mysql, toCstring(host), toCstring(user), toCstring(pass), toCstring(db), port, null, 0),
error()); error());
dbname = db; dbname = db;