Skip to content

Commit a169c4e

Browse files
committed
Merge branch 'develop'
2 parents e7b0bac + fd967ef commit a169c4e

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

Sources/PostgreSQLAdaptor/PostgreSQLAdaptorChannel.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -697,14 +697,14 @@ fileprivate func decodeTextArray(from buffer: UnsafeRawBufferPointer) -> Any? {
697697

698698
do { // one dimension
699699
let count = readInt32()
700-
assert(count >= 0 && count <= 100_000_000_000)
700+
assert(count >= 0 && count <= 1_000_000_000)
701701
if count <= 0 { return Array<String>() }
702702

703703
let lowerBound = readInt32()
704704
assert(lowerBound == 1, "unexpected lower bound")
705705

706706
if hasNull {
707-
var result = [ String? ](); result.reserveCapacity(count)
707+
var result = [ String? ](); result.reserveCapacity(Int(count))
708708

709709
for _ in 0..<count {
710710
let len = Int(readInt32().bigEndian)
@@ -714,13 +714,13 @@ fileprivate func decodeTextArray(from buffer: UnsafeRawBufferPointer) -> Any? {
714714
else {
715715
let strData = UnsafeRawBufferPointer(start: cursor, count: len)
716716
cursor += len
717-
result.append(String(data: strData, encoding: .utf8)!)
717+
result.append(String(decoding: strData, as: UTF8.self))
718718
}
719719
}
720720
return result
721721
}
722722
else {
723-
var result = [ String ](); result.reserveCapacity(count)
723+
var result = [ String ](); result.reserveCapacity(Int(count))
724724

725725
for _ in 0..<count {
726726
let len = Int(readInt32().bigEndian)
@@ -731,7 +731,7 @@ fileprivate func decodeTextArray(from buffer: UnsafeRawBufferPointer) -> Any? {
731731
else {
732732
let strData = UnsafeRawBufferPointer(start: cursor, count: len)
733733
cursor += len
734-
result.append(String(data: strData, encoding: .utf8)!)
734+
result.append(String(decoding: strData, as: UTF8.self))
735735
}
736736
}
737737
return result

ZeeQL3PG.xcodeproj/project.pbxproj

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
1010
E80CE01F1EA1811E00347D7B /* libZeeQL.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E80CE01E1EA1811E00347D7B /* libZeeQL.dylib */; };
1111
E80CE0221EA1871900347D7B /* PostgreSQLModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E80CE0211EA1871900347D7B /* PostgreSQLModelTests.swift */; };
1212
E80CE0241EA1897400347D7B /* PostgreSQLModelFetch.swift in Sources */ = {isa = PBXBuildFile; fileRef = E80CE0231EA1897400347D7B /* PostgreSQLModelFetch.swift */; };
13+
E84D18042E97F46A00038603 /* ZeeQL in Frameworks */ = {isa = PBXBuildFile; productRef = E84D18032E97F46A00038603 /* ZeeQL */; };
1314
E85E927025C31FE1006CEB40 /* libpq.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E85E926F25C31FE1006CEB40 /* libpq.a */; };
1415
E870FC391E9BA1E800A038AF /* PostgreSQLAdaptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = E870FC361E9BA1E800A038AF /* PostgreSQLAdaptor.swift */; };
1516
E870FC3A1E9BA1E800A038AF /* PostgreSQLAdaptorChannel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E870FC371E9BA1E800A038AF /* PostgreSQLAdaptorChannel.swift */; };
@@ -78,6 +79,7 @@
7879
isa = PBXFrameworksBuildPhase;
7980
buildActionMask = 2147483647;
8081
files = (
82+
E84D18042E97F46A00038603 /* ZeeQL in Frameworks */,
8183
E85E927025C31FE1006CEB40 /* libpq.a in Frameworks */,
8284
E8D95FC91E91A7AD0072FF09 /* libZeeQL.dylib in Frameworks */,
8385
);
@@ -268,6 +270,9 @@
268270
Base,
269271
);
270272
mainGroup = E8D2794A1E5504FA00453BBE;
273+
packageReferences = (
274+
E84D18022E97F46A00038603 /* XCRemoteSwiftPackageReference "ZeeQL3" */,
275+
);
271276
productRefGroup = E8D279541E5504FA00453BBE /* Products */;
272277
projectDirPath = "";
273278
projectRoot = "";
@@ -365,7 +370,8 @@
365370
ENABLE_NS_ASSERTIONS = NO;
366371
MTL_ENABLE_DEBUG_INFO = NO;
367372
REEXPORTED_LIBRARY_PATHS = "";
368-
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
373+
SWIFT_COMPILATION_MODE = wholemodule;
374+
SWIFT_OPTIMIZATION_LEVEL = "-O";
369375
};
370376
name = Release;
371377
};
@@ -455,6 +461,25 @@
455461
defaultConfigurationName = Release;
456462
};
457463
/* End XCConfigurationList section */
464+
465+
/* Begin XCRemoteSwiftPackageReference section */
466+
E84D18022E97F46A00038603 /* XCRemoteSwiftPackageReference "ZeeQL3" */ = {
467+
isa = XCRemoteSwiftPackageReference;
468+
repositoryURL = "https://github.com/ZeeQL/ZeeQL3.git";
469+
requirement = {
470+
kind = upToNextMajorVersion;
471+
minimumVersion = 0.9.38;
472+
};
473+
};
474+
/* End XCRemoteSwiftPackageReference section */
475+
476+
/* Begin XCSwiftPackageProductDependency section */
477+
E84D18032E97F46A00038603 /* ZeeQL */ = {
478+
isa = XCSwiftPackageProductDependency;
479+
package = E84D18022E97F46A00038603 /* XCRemoteSwiftPackageReference "ZeeQL3" */;
480+
productName = ZeeQL;
481+
};
482+
/* End XCSwiftPackageProductDependency section */
458483
};
459484
rootObject = E8D2794B1E5504FA00453BBE /* Project object */;
460485
}

0 commit comments

Comments
 (0)