diff options
Diffstat (limited to 'src/schema')
-rw-r--r-- | src/schema/schema_create.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/schema/schema_create.c b/src/schema/schema_create.c index cf6793b0c90..8cdcbbcad54 100644 --- a/src/schema/schema_create.c +++ b/src/schema/schema_create.c @@ -595,8 +595,11 @@ __create_table(WT_SESSION_IMPL *session, return (EINVAL); if ((ret = __wt_schema_get_table(session, - tablename, strlen(tablename), false, &table)) == 0) + tablename, strlen(tablename), false, &table)) == 0) { + if (exclusive) + WT_ERR(EEXIST); exists = true; + } WT_RET_NOTFOUND_OK(ret); WT_ERR(__wt_config_gets(session, cfg, "colgroups", &cval)); |