Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-93

[Python] The format of Cubrid Date/Time/Timestamp string are different from Python's

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Python Driver
    • Labels:
      None
    • Environment:
      1. CUBRID: 2008 R4.1 (8.4.1.0561) (64bit release build for linux_gnu)
      2. OS: Linux 64bit

      Description

      1. Brief:
        1. The format of Cubrid Date/Time/Timestamp string are different from Python's Date/Time format
      2. Test Steps:
        1. use CUBRIDdb.Date(1,1,1) to generate a date type data
        2. use CUBRIDdb.Date(0,0,0) to generate a time type data
        3. use CUBRIDdb.Timestamp(1,1,1 0,0,0) to generate a timestamp type data
      3. Result
        1. Expect result: "0001-01-01","00:00:00","0001-01-01 00:00:00"
        2. Actual result: "1-1-1","0:0:0","1-1-1 0:0:0"
          import CUBRIDdb
          def test_cubrid_date():
              date = CUBRIDdb.Date(1,1,1)
              time = CUBRIDdb.Time(0,0,0)
              timestamp = CUBRIDdb.Timestamp(1,1,1,0,0,0)
              print date
              print time
              print timestamp
          if __name__ == '__main__':
                  test_cubrid_date() 
          

        Activity

        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev: 392

        Show
        hellohuizhang 张慧 added a comment - Commit rev: 392
        Hide
        guorui 郭瑞 added a comment -

        Have Verify this issue. Close it

        Show
        guorui 郭瑞 added a comment - Have Verify this issue. Close it

          People

          • Assignee:
            guorui 郭瑞
            Reporter:
            guorui 郭瑞
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: