Changes between Version 7 and Version 8 of OracleBranch
- Timestamp:
- May 16, 2007, 1:08:58 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OracleBranch
v7 v8 73 73 === Empty strings === 74 74 75 Django generally prefers to use the empty string (!'') rather than NULL, but Oracle treats the empty string as NULL. To get around this, the oracle backend silently changes !'' to ' ' when saving data. The inverse operation is automatically performed by !OracleQuerySet.resolve_columns when fetching from the database.75 Django generally prefers to use the empty string (!'') rather than NULL, but Oracle treats the empty string as NULL. To get around this, the Oracle backend coerces the null=True option on fields that permit the empty string as a value. When fetching from the database, it is assumed that a NULL value in one of these fields really means the empty string, and the data is silently converted to reflect this assumption. 76 76 77 77 === Datetime conversion ===