Issue Details (XML | Word | Printable)

Key: DERBY-2578
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Mamta A. Satoor
Reporter: Mamta A. Satoor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Change CurrentDatetimeOperatorNode to use ExpressionClassBuilder to generate code for DVD rather than going directly though TypeCompiler

Created: 22/Apr/07 03:38 AM   Updated: 01/May/07 09:47 PM
Return to search
Component/s: SQL
Affects Version/s: 10.3.1.4
Fix Version/s: 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File DERBY2557_getObject_Using_CollationType_FormatID_interface_on_DVF_v1_diff.txt 2007-04-22 03:42 AM Mamta A. Satoor 8 kB
Text File DERBY2557_getObject_Using_CollationType_FormatID_interface_on_DVF_v1_stat.txt 2007-04-22 03:42 AM Mamta A. Satoor 0.2 kB
Issue Links:
Dependants
 

Resolution Date: 01/May/07 09:47 PM


 Description  « Hide
I am starting to think about the code generation for DERBY-1478 language based ordering. Depending on the collation type of the DTD, we might want to generate CollatorSQLChar rather than SQLChar for instance. In order to centralize this code, I am changing CurrentDatetimeOperatorNode's generateExpression so that it goes through ExpressionClassBuilder.generateDataValue rather than doing TypeCompiler.generateDataValue. This way, hopefully, I will only have to change ExpressionClassBuilder.generateDataValue to take care of the collation dependency of DVD generation. All the other classes which need to generate a DVD already go through ExpressionClassBuilder.generateDataValue. Will commit the patch for this soon. The tests have passed with no new failures.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mamta A. Satoor added a comment - 22/Apr/07 03:42 AM
Attaching patch to address this Jira entry. Will commit in next few minutes. No new failures caused by the patch.

Mamta A. Satoor added a comment - 22/Apr/07 03:47 AM
Commited the patch with revision 531138. If any comments, feel free to share.