Skip to content

Commit 8cf023f

Browse files
author
Javier Segura
committed
rollback
1 parent 6e3761d commit 8cf023f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/MIODBPostgreSQL/MIODBPostgreSQL.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ open class MIODBPostgreSQL: MIODB {
162162
var ret:Any?
163163

164164

165-
try MIOCoreAutoReleasePool {
165+
MIOCoreAutoReleasePool {
166166
let str = String(cString: value)
167167

168168
switch type {
@@ -175,25 +175,25 @@ open class MIODBPostgreSQL: MIODB {
175175
case 1700, 700, 701, 790: // numeric, float4, float8, money
176176
ret = Decimal( string: str )!
177177

178-
case 1114: ret = MIOCoreDate( fromString: str ) // Timestamp
179-
case 1184: ret = MIOCoreDate( fromString: str ) // Timestamp Z
178+
case 1114: ret = str // MIOCoreDate( fromString: str ) // Timestamp
179+
case 1184: ret = str // MIOCoreDate( fromString: str ) // Timestamp Z
180180
case 1083: ret = str // Time
181181

182182
case 1043: // varchar
183183
ret = str
184184
case 114, 3802: // json, jsonb (= transformable for us)
185-
ret = try JSONSerialization.jsonObject(with: str.data(using: .utf8)!, options: [.allowFragments] )
185+
ret = str //try JSONSerialization.jsonObject(with: str.data(using: .utf8)!, options: [.allowFragments] )
186186
case 3807: // json binary array
187-
ret = try JSONSerialization.jsonObject(with: str.data(using: .utf8)!, options: [.allowFragments] )
187+
ret = str //try JSONSerialization.jsonObject(with: str.data(using: .utf8)!, options: [.allowFragments] )
188188

189189
case 2950: // UUID
190-
ret = UUID( uuidString: str )
190+
ret = str // UUID( uuidString: str )
191191

192192
case 25,19: // Text, Name(used when getting information from the DB as which contraints/indices/etc has)
193193
ret = str
194194

195195
case 1082: // date
196-
ret = MIOCoreDate( fromString: str )
196+
ret = str //MIOCoreDate( fromString: str )
197197

198198
default:
199199
NSLog("Type not implemented. Fallback to string. type: \(type)")

0 commit comments

Comments
 (0)