Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 478e09f

Browse files
authored
add date and time type
1 parent b452861 commit 478e09f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

PostgreSQLClient.gd

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ enum DataTypePostgreSQL {
488488
BOX = 603,
489489
LSEG = 601,
490490
LINE = 628,
491-
CIRCLE = 718
491+
CIRCLE = 718,
492+
DATE = 1082,
493+
TIME = 1266
492494
}
493495

494496

@@ -1060,6 +1062,24 @@ func reponce_parser(fragmented_answer: PackedByteArray):
10601062
close(false)
10611063
response_buffer.resize(0)
10621064
return
1065+
DataTypePostgreSQL.DATE:
1066+
### DATE ###
1067+
1068+
# The type returned is Date.
1069+
1070+
# Ideally we should validate the value sent by the backend...
1071+
1072+
# The result.
1073+
row.append(value_data.get_string_from_ascii())
1074+
DataTypePostgreSQL.TIME:
1075+
### TIME ###
1076+
1077+
# The type returned is Time.
1078+
1079+
# Ideally we should validate the value sent by the backend...
1080+
1081+
# The result.
1082+
row.append(value_data.get_string_from_ascii())
10631083
_:
10641084
# The type returned is PackedByteArray.
10651085
row.append(value_data)

0 commit comments

Comments
 (0)