Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Python Driver
-
Labels:None
-
Environment:
- CUBRID: 2008 R4.1 (8.4.1.0561) (64bit release build for linux_gnu)
- OS: Linux 64bit
Description
- Brief:
- The format of Cubrid Date/Time/Timestamp string are different from Python's Date/Time format
- Test Steps:
- use CUBRIDdb.Date(1,1,1) to generate a date type data
- use CUBRIDdb.Date(0,0,0) to generate a time type data
- use CUBRIDdb.Timestamp(1,1,1 0,0,0) to generate a timestamp type data
- Result
- Expect result: "0001-01-01","00:00:00","0001-01-01 00:00:00"
- 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()
Commit rev: 392