Created
September 13, 2008 03:18
-
-
Save kovyrin/10555 to your computer and use it in GitHub Desktop.
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
--- constraints_parser.c (revision 57) | |
+++ constraints_parser.c (working copy) | |
@@ -392,14 +392,14 @@ | |
// Check all tables | |
for (i = 0; i < table_definitions_cnt; i++) { | |
// Get table info | |
- table_def_t table = table_definitions[i]; | |
- if (debug) printf(" (%s) ", table.name); | |
+ table_def_t *table = &(table_definitions[i]); | |
+ if (debug) printf(" (%s) ", table->name); | |
// Check if origin points to a valid record | |
- if (check_for_a_record(page, origin, &table, offsets) && check_constraints(origin, &table, offsets)) { | |
+ if (check_for_a_record(page, origin, table, offsets) && check_constraints(origin, table, offsets)) { | |
if (debug) printf("\n---------------------------------------------------\n" | |
- "PAGE%lu: Found a table %s record: %p (offset = %lu)\n", page_id, table.name, origin, offset); | |
- offset += process_ibrec(page, origin, &table, offsets); | |
+ "PAGE%lu: Found a table %s record: %p (offset = %lu)\n", page_id, table->name, origin, offset); | |
+ offset += process_ibrec(page, origin, table, offsets); | |
break; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment