Skip to content

Commit

Permalink
#171: fix-it for DatabaseError.code
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Mar 2, 2017
1 parent fe05ac9 commit a721748
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions GRDB.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,13 @@
56F3E74E1E66F83A00BF0F01 /* ResultCodeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7481E66F83A00BF0F01 /* ResultCodeTests.swift */; };
56F3E74F1E66F83A00BF0F01 /* ResultCodeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7481E66F83A00BF0F01 /* ResultCodeTests.swift */; };
56F3E7501E66F83A00BF0F01 /* ResultCodeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7481E66F83A00BF0F01 /* ResultCodeTests.swift */; };
56F3E7631E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */; };
56F3E7641E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */; };
56F3E7651E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */; };
56F3E7661E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */; };
56F3E7671E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */; };
56F3E7681E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */; };
56F3E7691E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */; };
56F5ABD91D814330001F60CB /* Data.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5690C33F1D23E82A00E59934 /* Data.swift */; };
56F5ABDA1D814330001F60CB /* NSData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5657AAB81D107001006283EF /* NSData.swift */; };
56F5ABDC1D814330001F60CB /* URL.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5657AB0E1D10899D006283EF /* URL.swift */; };
Expand Down Expand Up @@ -1926,6 +1933,7 @@
56EE573C1BB317B7007A6A95 /* StatementColumnConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatementColumnConvertibleTests.swift; sourceTree = "<group>"; };
56F0B98E1B6001C600A2F135 /* NSDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSDateTests.swift; sourceTree = "<group>"; };
56F3E7481E66F83A00BF0F01 /* ResultCodeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResultCodeTests.swift; sourceTree = "<group>"; };
56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Fixits-0.101.1.swift"; sourceTree = "<group>"; };
56FC98771D969DEF00E3C842 /* SQLExpression.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLExpression.swift; sourceTree = "<group>"; };
56FDECE11BB32DFD009AD709 /* MetalRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MetalRowTests.swift; sourceTree = "<group>"; };
56FF453F1D2C23BA00F21EF9 /* DeleteByKeyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DeleteByKeyTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2655,6 +2663,7 @@
children = (
56BF6D2C1DEF47DA006039A3 /* Fixits-0-84-0.swift */,
56BF6D2D1DEF47DA006039A3 /* Fixits-0-90-1.swift */,
56F3E7621E67F8C100BF0F01 /* Fixits-0.101.1.swift */,
56BF6D2E1DEF47DA006039A3 /* Fixits-Swift2.swift */,
);
path = Legacy;
Expand Down Expand Up @@ -3665,6 +3674,7 @@
567404891CEF84C8003ED5CC /* RowAdapter.swift in Sources */,
560FC5241CB003810014AA8E /* DatabaseWriter.swift in Sources */,
5698AD191DAAD17B0056AF8C /* FTS5Tokenizer.swift in Sources */,
56F3E7641E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */,
566475C31D981C5D00FF74B8 /* SQLSelectQuery.swift in Sources */,
56B964B21DA51D010002DA19 /* FTS5TokenizerDescriptor.swift in Sources */,
560FC5261CB003810014AA8E /* SerializedDatabase.swift in Sources */,
Expand Down Expand Up @@ -3859,6 +3869,7 @@
5698AD271DABAEFA0056AF8C /* FTS5WrapperTokenizer.swift in Sources */,
565490D51D5AE252005622CB /* RawRepresentable.swift in Sources */,
565490C51D5AE236005622CB /* SerializedDatabase.swift in Sources */,
56F3E7691E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */,
5698AC7E1DA37DCB0056AF8C /* VirtualTableModule.swift in Sources */,
565490D71D5AE252005622CB /* Utils.swift in Sources */,
5698AC3D1D9E5A590056AF8C /* FTS3Pattern.swift in Sources */,
Expand Down Expand Up @@ -4071,6 +4082,7 @@
5674048B1CEF84C8003ED5CC /* RowAdapter.swift in Sources */,
56AFC9F91CB1A8BB00F48B96 /* DatabaseWriter.swift in Sources */,
5698AD1A1DAAD17C0056AF8C /* FTS5Tokenizer.swift in Sources */,
56F3E7671E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */,
566475C61D981C5D00FF74B8 /* SQLSelectQuery.swift in Sources */,
56B964B51DA51D010002DA19 /* FTS5TokenizerDescriptor.swift in Sources */,
56AFC9FB1CB1A8BB00F48B96 /* SerializedDatabase.swift in Sources */,
Expand Down Expand Up @@ -4384,6 +4396,7 @@
5674048A1CEF84C8003ED5CC /* RowAdapter.swift in Sources */,
563363C51C942C37000BE133 /* DatabaseWriter.swift in Sources */,
5698AD1B1DAAD17D0056AF8C /* FTS5Tokenizer.swift in Sources */,
56F3E7661E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */,
566475C51D981C5D00FF74B8 /* SQLSelectQuery.swift in Sources */,
56B964B41DA51D010002DA19 /* FTS5TokenizerDescriptor.swift in Sources */,
560A37A81C8FF6E500949E71 /* SerializedDatabase.swift in Sources */,
Expand Down Expand Up @@ -4695,6 +4708,7 @@
567404881CEF84C8003ED5CC /* RowAdapter.swift in Sources */,
563363C41C942C37000BE133 /* DatabaseWriter.swift in Sources */,
5698AD181DAAD17A0056AF8C /* FTS5Tokenizer.swift in Sources */,
56F3E7631E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */,
566475C21D981C5D00FF74B8 /* SQLSelectQuery.swift in Sources */,
56B964B11DA51D010002DA19 /* FTS5TokenizerDescriptor.swift in Sources */,
560A37A71C8FF6E500949E71 /* SerializedDatabase.swift in Sources */,
Expand Down Expand Up @@ -4768,6 +4782,7 @@
5664759F1D97D8A000FF74B8 /* SQLCollection.swift in Sources */,
F3BA802B1CFB289B003DC1BA /* QueryInterfaceRequest.swift in Sources */,
5698AD171DAAD16F0056AF8C /* FTS5Tokenizer.swift in Sources */,
56F3E7681E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */,
F3BA80131CFB2876003DC1BA /* DatabaseValue.swift in Sources */,
56B964B61DA51D010002DA19 /* FTS5TokenizerDescriptor.swift in Sources */,
566475C71D981C5D00FF74B8 /* SQLSelectQuery.swift in Sources */,
Expand Down Expand Up @@ -4966,6 +4981,7 @@
5664759C1D97D8A000FF74B8 /* SQLCollection.swift in Sources */,
F3BA80871CFB2E70003DC1BA /* QueryInterfaceRequest.swift in Sources */,
5698AD161DAAD16F0056AF8C /* FTS5Tokenizer.swift in Sources */,
56F3E7651E67F8C100BF0F01 /* Fixits-0.101.1.swift in Sources */,
F3BA806F1CFB2E55003DC1BA /* DatabaseValue.swift in Sources */,
56B964B31DA51D010002DA19 /* FTS5TokenizerDescriptor.swift in Sources */,
566475C41D981C5D00FF74B8 /* SQLSelectQuery.swift in Sources */,
Expand Down
4 changes: 4 additions & 0 deletions GRDB/Legacy/Fixits-0.101.1.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extension DatabaseError {
@available(*, unavailable, renamed:"resultCode")
public var code: Int32 { return 0 }
}

0 comments on commit a721748

Please sign in to comment.