List:Internals« Previous MessageNext Message »
From:Øystein Grøvlen Date:June 8 2009 9:38am
Subject:Re: Value objects and Protocol (WL#4760)
View as plain text  
Michael Widenius wrote:
> Hi!
> 
>>>>>> "Oystein" == Oystein Grovlen <ystein> writes:
> Oystein> That's really what I tried to say.  Both integer and datetime will 
> Oystein> internally be represented by a longlong, but the conversion from 
> Oystein> longlong to string will be different.
> 
> Plese don't do that!
> 
> We want to add microsecond support to datetime and having datetime as
> longlong would make this quite hard to do!

I agree, but datetime is converted to longlong today so I am not 
changing anything here.  The idea is to fix this in two steps.  First, 
type conversion code (e.g., from datetime to longlong) that is 
duplicated in many item/field classes is moved to a single place (the 
Value object). Then, it should become much easier to introduce new type 
representations (e.g., a special date/time representation).

-- 
Øystein
Thread
Value objects and Protocol (WL#4760)Øystein Grøvlen22 May
  • Re: Value objects and Protocol (WL#4760)Konstantin Osipov22 May
    • Re: Value objects and Protocol (WL#4760)Alex Esterkin22 May
      • Re: Value objects and Protocol (WL#4760)Brian Aker22 May
        • Re: Value objects and Protocol (WL#4760)Alex Esterkin22 May
          • Re: Value objects and Protocol (WL#4760)Brian Aker22 May
          • Re: Value objects and Protocol (WL#4760)Sergei Golubchik23 May
        • Re: Value objects and Protocol (WL#4760)Konstantin Osipov23 May
          • Re: Value objects and Protocol (WL#4760)Brian Aker23 May
    • Re: Value objects and Protocol (WL#4760)Øystein Grøvlen22 May
      • Re: Value objects and Protocol (WL#4760)Konstantin Osipov22 May
        • Re: Value objects and Protocol (WL#4760)Alex Esterkin22 May
          • Re: Value objects and Protocol (WL#4760)Øystein Grøvlen25 May
        • Re: Value objects and Protocol (WL#4760)Øystein Grøvlen24 May
          • Re: Value objects and Protocol (WL#4760)Konstantin Osipov24 May
      • Re: Value objects and Protocol (WL#4760)Konstantin Osipov23 May
        • Re: Value objects and Protocol (WL#4760)Øystein Grøvlen25 May
          • Re: Value objects and Protocol (WL#4760)Michael Widenius6 Jun
            • Re: Value objects and Protocol (WL#4760)Øystein Grøvlen8 Jun
            • Re: Value objects and Protocol (WL#4760)Jay Pipes8 Jun
              • Re: Value objects and Protocol (WL#4760)Jay Pipes8 Jun
  • Re: Value objects and Protocol (WL#4760)Jay Pipes24 May
    • Re: Value objects and Protocol (WL#4760)Øystein Grøvlen25 May
      • Re: Value objects and Protocol (WL#4760)Jay Pipes26 May
    • Re: [Drizzle-discuss] Value objects and Protocol (WL#4760)Jim Starkey28 May
Re: Value objects and Protocol (WL#4760)Brian Aker22 May