DropTable implements sql.TableDropper.
(ctx *sql.Context, name string)
| 295 | } |
| 296 | return ErrDuckDB.New(err) |
| 297 | } |
| 298 | |
| 299 | // TODO: support collation |
| 300 | |
| 301 | return nil |
| 302 | } |
| 303 | |
| 304 | func isIndexCreationDisabled(ctx *sql.Context) bool { |
| 305 | if !configuration.IsReplicationWithoutIndex() { |
| 306 | return false |
| 307 | } |
| 308 | if mycontext.IsReplicationQuery(ctx) { |
| 309 | return true |
| 310 | } |
| 311 | _, vv, ok := sql.SystemVariables.GetGlobal("replica_is_loading_snapshot") |
| 312 | if !ok { |
| 313 | return false |
nothing calls this directly
no test coverage detected