Changeset 409 for GearsORM/trunk
- Timestamp:
- 03/22/08 01:53:54 (9 months ago)
- Location:
- GearsORM/trunk
- Files:
-
- 2 modified
-
GearsORM.Model.js (modified) (1 diff)
-
GearsORM.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GearsORM/trunk/GearsORM.Model.js
r407 r409 113 113 { 114 114 var value = this[fieldName]; 115 if(!field.isRelation) 115 if(typeof(value) == "undefined") 116 values.push(null); 117 else if(!field.isRelation) 116 118 values.push(value); 117 119 else -
GearsORM/trunk/GearsORM.js
r408 r409 56 56 try 57 57 { 58 if(params)59 for(var i=0;i<params.length;i++)60 if(typeof(params[i]) == 'undefined') params[i] = null;61 62 58 if(GearsORM.debug)GearsORM.log(sql,params); 63 59 return GearsORM.getDB().execute(sql,params || []);
