Re: [Django] #87: [patch] Oracle database support

2012-10-27 Thread Django
#87: [patch] Oracle database support
-+-
 Reporter:  jrhuggins@…  |Owner:  adrian
 Type:  enhancement  |   Status:  closed
Component:  Database layer   |  Version:
  (models, ORM)  |   Resolution:  duplicate
 Severity:  normal   | Triage Stage:
 Keywords:  oracle database db   |  Unreviewed
  sequence   |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by t@…):

 * ui_ux:   => 0
 * easy:   => 0


Comment:

 Are there any updated documentation for the oracle support.

 Sorry for my english.
 Gavekort.

 
 Adrian, what about this line in fields.py?
 class DateField(Field):
 ...
 def get_db_prep_save(self, value):
 # Casts dates into string format for entry into database.
 if value is not None:
 value = value.strftime('%Y-%m-%d')
 return Field.get_db_prep_save(self, value)
 ...
 To get this to work in Oracle, I modifed it like so:
 class DateField(Field):
 ...
 def get_db_prep_save(self, value):
 # Casts dates into string format for entry into database.
 if value is not None:
 if db.DATABASE_ENGINE != 'oracle':
 #Oracle does not need a string conversion
 value = value.strftime('%Y-%m-%d')
 return Field.get_db_prep_save(self, value)
 ...
 Even though I haven't changed the lookup hooks into typecasts, yet... I
 think the Oracle backend is "good" enough for intitial upload into the
 repository.[http://www.nemgavekort.dk/l/gavekort-biograf gavekort
 biograf][http://www.nemgavekort.dk/ gavekort skabelon] Well, good enough
 that it works for me. :-) The sequences issue, the Null/Empty? String
 issue, the offset&limit issue, and boolean issue are all now resolved for
 Oracle. I'll post the diffs and files shortly.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #87: [patch] Oracle database support

2006-05-26 Thread Django
#87: [patch] Oracle database support
-+--
 Reporter:  [EMAIL PROTECTED]   |Owner:  adrian 
 Type:  enhancement  |   Status:  closed 
 Priority:  normal   |Milestone:  Version 1.0
Component:  Database wrapper |  Version: 
 Severity:  normal   |   Resolution:  duplicate  
 Keywords:  oracle database db sequence  |  
-+--
Changes (by adrian):

  * resolution:  => duplicate
  * status:  assigned => closed

Comment:

 #1990 has superceded this ticket.

-- 
Ticket URL: 
Django 
The web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~--~~~~--~~--~--~---



Re: [Django] #87: [patch] Oracle database support

2006-04-23 Thread Django
#87: [patch] Oracle database support
-+--
 Reporter:  [EMAIL PROTECTED]   |Owner:  adrian 
 Type:  enhancement  |   Status:  assigned   
 Priority:  normal   |Milestone:  Version 1.0
Component:  Database wrapper |  Version: 
 Severity:  normal   |   Resolution: 
 Keywords:  oracle database db sequence  |  
-+--
Comment (by adrian):

 See also #304, which has been marked as a duplicate.

-- 
Ticket URL: 
Django 
The web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~--~~~~--~~--~--~---