{"id":17153101,"url":"https://github.com/jsonbecker/testbug","last_synced_at":"2025-07-29T07:40:19.805Z","repository":{"id":144874544,"uuid":"105952943","full_name":"jsonbecker/testbug","owner":"jsonbecker","description":"A small example to report a bug","archived":false,"fork":false,"pushed_at":"2017-10-06T01:41:18.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:11:12.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsonbecker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-06T00:14:26.000Z","updated_at":"2024-03-18T19:36:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d9cf028-d9b8-4cd8-aa86-633f2b3fcb2e","html_url":"https://github.com/jsonbecker/testbug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsonbecker/testbug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonbecker%2Ftestbug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonbecker%2Ftestbug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonbecker%2Ftestbug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonbecker%2Ftestbug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsonbecker","download_url":"https://codeload.github.com/jsonbecker/testbug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonbecker%2Ftestbug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267648062,"owners_count":24121411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T21:45:15.022Z","updated_at":"2025-07-29T07:40:19.778Z","avatar_url":"https://github.com/jsonbecker.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testbug\n\nThe goal of testbug is to show a bug I think I found\n\n## Output of failed test\n\nThis only happens when running with `devtools::test()` or R CMD tools on Mac OS.\n\nI do not see these errors on Linux.\n\n\n``` r\n==\u003e devtools::test()\n\nLoading testbug\nLoading required package: testthat\nLoading required package: dplyr\n\nAttaching package: ‘dplyr’\n\nThe following object is masked from ‘package:testthat’:\n\n    matches\n\nThe following objects are masked from ‘package:stats’:\n\n    filter, lag\n\nThe following objects are masked from ‘package:base’:\n\n    intersect, setdiff, setequal, union\n\nTesting testbug\ntrying to trip the SAVEPOINT error: ...1...2\n\nFailed -------------------------------------------------------------------------\n1. Error: This code creates a SAVEPOINT error with a large tmp table (@test_savepoint_error.R#21) \nnanodbc/nanodbc.cpp:1587: HY000: internal SAVEPOINT failed \n1: expect_silent(test_tmp_tables(connection, df)) at /Users/jason/code/testbug/tests/testthat/test_savepoint_error.R:21\n2: evaluate_promise(object)\n3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, \n       message = handle_message))\n4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)\n5: withVisible(code)\n6: test_tmp_tables(connection, df)\n7: copy_to(dest = connection, df = my_data, name = \"tmp_data\", overwrite = TRUE, temporary = TRUE) at /Users/jason/code/testbug/R/hello.R:5\n8: copy_to.DBIConnection(dest = connection, df = my_data, name = \"tmp_data\", overwrite = TRUE, \n       temporary = TRUE)\n9: copy_to(dbplyr::src_dbi(dest), df = df, name = name, overwrite = overwrite, ...)\n10: copy_to.src_sql(dbplyr::src_dbi(dest), df = df, name = name, overwrite = overwrite, \n       ...)\n11: db_copy_to(dest$con, name, df, overwrite = overwrite, types = types, temporary = temporary, \n       unique_indexes = unique_indexes, indexes = indexes, analyze = analyze, ...)\n12: db_copy_to.OdbcConnection(dest$con, name, df, overwrite = overwrite, types = types, \n       temporary = temporary, unique_indexes = unique_indexes, indexes = indexes, analyze = analyze, \n       ...)\n13: dbWriteTable(con, table, values, temporary = temporary)\n14: dbWriteTable(con, table, values, temporary = temporary)\n15: .local(conn, name, value, ...)\n16: tryCatch(result_insert_dataframe(rs@ptr, values), finally = dbClearResult(rs))\n17: tryCatchList(expr, classes, parentenv, handlers)\n18: result_insert_dataframe(rs@ptr, values)\n\n2. Error: This code does not create a SAVEPOINT error with a large tmp table (@test_savepoint_error.R#49) \nnanodbc/nanodbc.cpp:1587: HY000: internal SAVEPOINT failed \n1: expect_silent(test_tmp_tables(connection, df)) at /Users/jason/code/testbug/tests/testthat/test_savepoint_error.R:49\n2: evaluate_promise(object)\n3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, \n       message = handle_message))\n4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)\n5: withVisible(code)\n6: test_tmp_tables(connection, df)\n7: copy_to(dest = connection, df = my_data, name = \"tmp_data\", overwrite = TRUE, temporary = TRUE) at /Users/jason/code/testbug/R/hello.R:5\n8: copy_to.DBIConnection(dest = connection, df = my_data, name = \"tmp_data\", overwrite = TRUE, \n       temporary = TRUE)\n9: copy_to(dbplyr::src_dbi(dest), df = df, name = name, overwrite = overwrite, ...)\n10: copy_to.src_sql(dbplyr::src_dbi(dest), df = df, name = name, overwrite = overwrite, \n       ...)\n11: db_copy_to(dest$con, name, df, overwrite = overwrite, types = types, temporary = temporary, \n       unique_indexes = unique_indexes, indexes = indexes, analyze = analyze, ...)\n12: db_copy_to.OdbcConnection(dest$con, name, df, overwrite = overwrite, types = types, \n       temporary = temporary, unique_indexes = unique_indexes, indexes = indexes, analyze = analyze, \n       ...)\n13: dbWriteTable(con, table, values, temporary = temporary)\n14: dbWriteTable(con, table, values, temporary = temporary)\n15: .local(conn, name, value, ...)\n16: tryCatch(result_insert_dataframe(rs@ptr, values), finally = dbClearResult(rs))\n17: tryCatchList(expr, classes, parentenv, handlers)\n18: result_insert_dataframe(rs@ptr, values)\n\nDONE ===========================================================================\n```\nOpening a fresh R session and loading `DBI`, `odbc`, and `dplyr`:\n\n```r\n\u003e sessionInfo()\nR version 3.4.2 (2017-09-28)\nPlatform: x86_64-apple-darwin15.6.0 (64-bit)\nRunning under: macOS High Sierra 10.13\n\nMatrix products: default\nBLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib\nLAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib\n\nlocale:\n[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8\n\nattached base packages:\n[1] stats     graphics  grDevices utils     datasets  methods   base     \n\nother attached packages:\n[1] dplyr_0.7.4 DBI_0.7     odbc_1.1.1 \n\nloaded via a namespace (and not attached):\n [1] Rcpp_0.12.12     assertthat_0.2.0 R6_2.2.2         magrittr_1.5    \n [5] rlang_0.1.2      blob_1.1.0       bindrcpp_0.2     tools_3.4.2     \n [9] bit64_0.9-7      glue_1.1.1       bit_1.1-12       hms_0.3         \n[13] yaml_2.1.14      compiler_3.4.2   pkgconfig_2.0.1  bindr_0.1       \n[17] tibble_1.3.4    \n```\n\n\n## PostgreSQL Info\n\n* PostgreSQL 9.6.3\n\n```bash\n\u003e odbcinst -j\nunixODBC 2.3.4\nDRIVERS............: /usr/local/Cellar/unixodbc/2.3.4/etc/odbcinst.ini\nSYSTEM DATA SOURCES: /usr/local/Cellar/unixodbc/2.3.4/etc/odbc.ini\nFILE DATA SOURCES..: /usr/local/Cellar/unixodbc/2.3.4/etc/ODBCDataSources\nUSER DATA SOURCES..: /Users/jason/.odbc.ini\nSQLULEN Size.......: 8\nSQLLEN Size........: 8\nSQLSETPOSIROW Size.: 8\n\n\u003e cat /Users/jason/.odbc.ini\n[Allovue Test]\nDriver              = PostgreSQL Driver\nDatabase            = allovue_test\nServername          = localhost\nUserName            = postgres\nPassword            =\nPort                = 5432\nShowOidColumn       = No\nFakeOidIndex        = No\nBoolsAsChar         = No\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonbecker%2Ftestbug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsonbecker%2Ftestbug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonbecker%2Ftestbug/lists"}