Nicolas Cannasse 14 years ago
parent
commit
bae7a3e33e
2 changed files with 3 additions and 1 deletions
  1. 0 1
      std/sys/db/SpodMacros.hx
  2. 3 0
      std/sys/db/Types.hx

+ 0 - 1
std/sys/db/SpodMacros.hx

@@ -296,7 +296,6 @@ class SpodMacros {
 		for( m in c.meta.get() )
 		for( m in c.meta.get() )
 			switch( m.name ) {
 			switch( m.name ) {
 			case ":id":
 			case ":id":
-				if( i.key != null ) error("Multiple unique id", m.pos);
 				i.key = [];
 				i.key = [];
 				for( p in m.params ) {
 				for( p in m.params ) {
 					var id = makeIdent(p);
 					var id = makeIdent(p);

+ 3 - 0
std/sys/db/Types.hx

@@ -99,6 +99,9 @@ typedef SNekoSerialized = haxe.io.Bytes
 
 
 @:native("Int")
 @:native("Int")
 extern class SFlags<T> {
 extern class SFlags<T> {
+	public inline function init() : Void {
+		untyped __this__ = 0;
+	}
 	public inline function get( v : T ) : Bool {
 	public inline function get( v : T ) : Bool {
 		return (cast this) & (1 << Type.enumIndex(v)) != 0;
 		return (cast this) & (1 << Type.enumIndex(v)) != 0;
 	}
 	}