Changeset 291 for GearsORM/trunk
- Timestamp:
- 07/14/07 08:32:59 (18 months ago)
- Location:
- GearsORM/trunk
- Files:
-
- 3 modified
-
GearsORM.Fields.js (modified) (2 diffs)
-
GearsORM.ResultIterator.js (modified) (1 diff)
-
GearsORM.Sql.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GearsORM/trunk/GearsORM.Fields.js
r289 r291 9 9 { 10 10 this.options = options || {}; 11 } 11 }; 12 12 field.prototype = 13 13 { … … 23 23 isBackwardRelation:false, 24 24 isRelation:false 25 } 25 }; 26 26 field.constructor = GearsORM.Field.Primitive; 27 27 return field; -
GearsORM/trunk/GearsORM.ResultIterator.js
r284 r291 68 68 { 69 69 arr.push(current); 70 }) 70 }); 71 71 return arr; 72 72 } -
GearsORM/trunk/GearsORM.Sql.js
r283 r291 77 77 query.push(") VALUES ("); 78 78 query.push(self._valuesByModel(modelClass)); 79 query.push(")") 79 query.push(")"); 80 80 return query.join(""); 81 81 }, … … 163 163 sql.push("insert"); 164 164 sql.push(" on table \""); 165 sql.push(tableName) 165 sql.push(tableName); 166 166 sql.push("\" violates foreign key constraint \"fk_"); 167 167 sql.push(relatedTableName); … … 214 214 sql.push(" ON "); 215 215 sql.push(relatedName); 216 sql.push(".rowid = ") 216 sql.push(".rowid = "); 217 217 sql.push(name); 218 218 sql.push(".");
