-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Tightdb/column_type_rename
Column type rename
- Loading branch information
Showing
14 changed files
with
128 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/************************************************************************* | ||
* | ||
* TIGHTDB CONFIDENTIAL | ||
* __________________ | ||
* | ||
* [2011] - [2012] TightDB Inc | ||
* All Rights Reserved. | ||
* | ||
* NOTICE: All information contained herein is, and remains | ||
* the property of TightDB Incorporated and its suppliers, | ||
* if any. The intellectual and technical concepts contained | ||
* herein are proprietary to TightDB Incorporated | ||
* and its suppliers and may be covered by U.S. and Foreign Patents, | ||
* patents in process, and are protected by trade secret or copyright law. | ||
* Dissemination of this information or reproduction of this material | ||
* is strictly forbidden unless prior written permission is obtained | ||
* from TightDB Incorporated. | ||
* | ||
**************************************************************************/ | ||
#ifndef TIGHTDB_OBJC_DATA_TYPE_H | ||
#define TIGHTDB_OBJC_DATA_TYPE_H | ||
|
||
// Make sure numbers match those in <tightdb/data_type.hpp> | ||
typedef enum { | ||
tightdb_Bool = 1, | ||
tightdb_Int = 0, | ||
tightdb_String = 2, | ||
tightdb_Binary = 4, | ||
tightdb_Date = 7, | ||
tightdb_Table = 5, | ||
tightdb_Mixed = 6, | ||
} TightdbDataType; | ||
|
||
#endif // TIGHTDB_OBJC_DATA_TYPE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// data_type.mm | ||
// TightDB | ||
// | ||
// Check that data type enumeration values are in synch with the core library | ||
// | ||
|
||
#import <SenTestingKit/SenTestingKit.h> | ||
|
||
#import <tightdb/objc/data_type.h> | ||
#import <tightdb/data_type.hpp> | ||
|
||
@interface TestDataType : SenTestCase | ||
@end | ||
@implementation TestDataType | ||
|
||
- (void)testDataType | ||
{ | ||
STAssertEquals((int)tightdb_Bool, (int)tightdb::type_Bool, @"Bool"); | ||
STAssertEquals((int)tightdb_Int, (int)tightdb::type_Int, @"Int"); | ||
STAssertEquals((int)tightdb_String, (int)tightdb::type_String, @"String"); | ||
STAssertEquals((int)tightdb_Binary, (int)tightdb::type_Binary, @"Binary"); | ||
STAssertEquals((int)tightdb_Date, (int)tightdb::type_Date, @"Date"); | ||
STAssertEquals((int)tightdb_Table, (int)tightdb::type_Table, @"Table"); | ||
STAssertEquals((int)tightdb_Mixed, (int)tightdb::type_Mixed, @"Mixed"); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.