瀏覽代碼

make mysql port and socket optional

Nicolas Cannasse 13 年之前
父節點
當前提交
9498690288
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 2 2
      std/neko/_std/sys/db/Mysql.hx
  2. 2 2
      std/php/_std/sys/db/Mysql.hx
  3. 2 2
      std/sys/db/Mysql.hx

+ 2 - 2
std/neko/_std/sys/db/Mysql.hx

@@ -190,10 +190,10 @@ private class MysqlConnection implements sys.db.Connection {
 
 	public static function connect( params : {
 		host : String,
-		port : Null<Int>,
+		?port : Int,
 		user : String,
 		pass : String,
-		socket : Null<String>,
+		?socket : String,
 		database : String
 	} ) : sys.db.Connection {
 		var o = untyped {

+ 2 - 2
std/php/_std/sys/db/Mysql.hx

@@ -205,10 +205,10 @@ private class MysqlResultSet implements ResultSet {
 
 	public static function connect( params : {
 		host : String,
-		port : Null<Int>,
+		?port : Int,
 		user : String,
 		pass : String,
-		socket : Null<String>,
+		?socket : String,
 		database : String
 	} ) : sys.db.Connection {
 		var c = untyped __call__("mysql_connect",

+ 2 - 2
std/sys/db/Mysql.hx

@@ -28,10 +28,10 @@ class Mysql {
 
 	public static function connect( params : {
 		host : String,
-		port : Null<Int>,
+		?port : Int,
 		user : String,
 		pass : String,
-		socket : Null<String>,
+		?socket : String,
 		database : String
 	} ) : sys.db.Connection {
 		throw "Not implemented for this platform";