Skip to content

Commit

Permalink
Only define the ruby progress_handler method if the OMIT compilation …
Browse files Browse the repository at this point in the history
…flag is not set
  • Loading branch information
fractaledmind committed Jan 7, 2024
1 parent 3681b2a commit c0d5144
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/sqlite3/database.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,9 @@ init_sqlite3_database(void)
rb_define_method(cSqlite3Database, "changes", changes, 0);
rb_define_method(cSqlite3Database, "authorizer=", set_authorizer, 1);
rb_define_method(cSqlite3Database, "busy_handler", busy_handler, -1);
#ifndef SQLITE_OMIT_PROGRESS_CALLBACK
rb_define_method(cSqlite3Database, "progress_handler", progress_handler, -1);
#endif
rb_define_method(cSqlite3Database, "busy_timeout=", set_busy_timeout, 1);
rb_define_method(cSqlite3Database, "extended_result_codes=", set_extended_result_codes, 1);
rb_define_method(cSqlite3Database, "transaction_active?", transaction_active_p, 0);
Expand Down

0 comments on commit c0d5144

Please sign in to comment.