Changeset 2371
- Timestamp:
- 07/18/05 16:42:52 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r2369 r2371 221 221 """Extracts a billing code information given its name.""" 222 222 code = StorageBillingCode(self, label) 223 result = self.doSearch("SELECT * FROM billingcodes WHERE billingcode=%s LIMIT 1" % self.doQuote( label))223 result = self.doSearch("SELECT * FROM billingcodes WHERE billingcode=%s LIMIT 1" % self.doQuote(self.userCharsetToDatabase(label))) 224 224 if result : 225 225 fields = result[0] 226 226 code.ident = fields.get("id") 227 code.BillingCode = self.databaseToUserCharset(fields.get("billingcode" , label))227 code.BillingCode = self.databaseToUserCharset(fields.get("billingcode")) 228 228 code.Description = self.databaseToUserCharset(fields.get("description") or "") 229 229 code.Balance = fields.get("balance") or 0.0