Skip to content

Commit 76f5f29

Browse files
committed
re-implement setSchema
1 parent 83f2050 commit 76f5f29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ ChainsqlAPI.prototype.setSchema = function(schemaID){
11461146
if(connection._schema_id === undefined ){
11471147
throw new Error("The current version does not support setSchema");
11481148
}
1149-
connection._schema_id = schemaID;
1149+
return connection.schemaChanged(schemaID)
11501150
}
11511151

11521152
ChainsqlAPI.prototype.getSchemaList = function(options){

0 commit comments

Comments
 (0)