Ver código fonte

copy private fields if needed.

Nicolas Cannasse 18 anos atrás
pai
commit
7aad346b4b
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      std/neko/db/Manager.hx

+ 2 - 2
std/neko/db/Manager.hx

@@ -64,7 +64,7 @@ class Manager<T : Object> {
 
 		// get the list of private fields
 		var apriv : Array<String> = cl.PRIVATE_FIELDS;
-		if( apriv == null ) apriv = new Array();
+		apriv = if( apriv == null ) new Array() else apriv.copy();
 		apriv.push("local_manager");
 		apriv.push("__class__");
 
@@ -306,7 +306,7 @@ class Manager<T : Object> {
 
 	function quoteField(f : String) {
 		var fsmall = f.toLowerCase();
-		if( fsmall == "read" || fsmall == "desc" || fsmall == "out" || fsmall == "group" )
+		if( fsmall == "read" || fsmall == "desc" || fsmall == "out" || fsmall == "group" || fsmall == "version" )
 			return "`"+f+"`";
 		return f;
 	}