Overview
Comment: | Use dot syntax |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
dfb0336763997b766d56a302c7534656 |
User & Date: | js on 2019-03-16 22:58:16 |
Other Links: | manifest | tags |
Context
2020-05-31
| ||
20:11 | Update URL and e-mail check-in: 6417eb405d user: js tags: trunk | |
2019-03-16
| ||
22:58 | Use dot syntax check-in: dfb0336763 user: js tags: trunk | |
2018-11-06
| ||
21:45 | Modernize coding style check-in: 491b090606 user: js tags: trunk | |
Changes
Modified src/PGConnection.m from [1ce8286c7a] to [87cb0e8477].
1 | 1 2 3 4 5 6 7 8 9 | - + | /* |
︙ | |||
57 58 59 60 61 62 63 | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | - + | if (connectionInfo != nil) [connectionInfo appendFormat: @" %@=%@", key, object]; else connectionInfo = [OFMutableString stringWithFormat: @"%@=%@", key, object]; } |
︙ | |||
82 83 84 85 86 87 88 | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | - + | PQfinish(_connection); _connection = NULL; } - (PGResult *)executeCommand: (OFConstantString *)command { |
︙ | |||
130 131 132 133 134 135 136 | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | - + - + - - + + - - + + - + | do { if ([parameter isKindOfClass: [OFString class]]) values[i++] = [parameter UTF8String]; else if ([parameter isKindOfClass: [OFNumber class]]) { OFNumber *number = parameter; |
︙ | |||
186 187 188 189 190 191 192 | 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | - + | OFString *key, *value; size_t i, count; command = [OFMutableString stringWithString: @"INSERT INTO "]; [command appendString: table]; [command appendString: @" ("]; |
︙ | |||
210 211 212 213 214 215 216 | 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 | - + - + | @try { i = 0; enumerator = [row objectEnumerator]; while ((value = [enumerator nextObject]) != nil) { if (i > 0) [command appendString: @", "]; |
︙ |
Modified src/PGResult+Private.h from [159fb60c68] to [edbe188f70].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 | - + - | OF_ASSUME_NONNULL_BEGIN @interface PGResult () @property (readonly, nonatomic) PGresult *pg_result; + (instancetype)pg_resultWithResult: (PGresult *)result; |
Modified src/PGResultRow+Private.h from [54a71cebbe] to [8d209e7216].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 | - + - | OF_ASSUME_NONNULL_BEGIN @interface PGResultRow () + (instancetype)pg_rowWithResult: (PGResult *)result row: (int)row; - (instancetype)pg_initWithResult: (PGResult *)result |
Modified src/PGResultRow.m from [80d17b4c5e] to [3db1de9ebe].
1 | 1 2 3 4 5 6 7 8 9 | - + | /* |
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | - + - + - + - + - + | case 16: /* BOOLOID */ if ([string isEqual: @"t"]) return [OFNumber numberWithBool: YES]; else return [OFNumber numberWithBool: NO]; case 21: /* INT2OID */ return [OFNumber numberWithInt16: |
︙ | |||
72 73 74 75 76 77 78 | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - - + + - + | + (instancetype)rowWithResult: (PGResult *)result row: (int)row { return [[[self alloc] initWithResult: result row: row] autorelease]; } |
︙ | |||
166 167 168 169 170 171 172 | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | - - + + - + | state->mutationsPtr = (unsigned long *)self; return j; } @end @implementation PGResultRowEnumerator |
︙ |