Skip to content

Commit cf9863f

Browse files
committed
Added new define for schema literal
1 parent 9887c78 commit cf9863f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cloudsync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ void cloudsync_sync_key (cloudsync_context *data, const char *key, const char *v
15441544
return;
15451545
}
15461546

1547-
if (strcmp(key, "schema") == 0) {
1547+
if (strcmp(key, CLOUDSYNC_KEY_SCHEMA) == 0) {
15481548
cloudsync_set_schema(data, value);
15491549
return;
15501550
}

src/dbutils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#define CLOUDSYNC_KEY_CHECK_SEQ "check_seq"
2323
#define CLOUDSYNC_KEY_SEND_DBVERSION "send_dbversion"
2424
#define CLOUDSYNC_KEY_SEND_SEQ "send_seq"
25+
#define CLOUDSYNC_KEY_SCHEMA "schema"
2526
#define CLOUDSYNC_KEY_DEBUG "debug"
2627
#define CLOUDSYNC_KEY_ALGO "algo"
2728

0 commit comments

Comments
 (0)