Commit Graph

94 Commits

Author SHA1 Message Date
James Cor 3a244ac570 more conflicts 2022-07-26 14:35:40 -07:00
James Cor 3bf7ad5c95 more conflicts woo 2022-07-25 22:56:03 -07:00
jennifersp 84af41c638 support unix socket (#3796) 2022-07-25 22:48:34 -07:00
Maximilian Hoffman 9dae75ed7d Better read only error messages (#3920)
* Better read only error messages

* GMS bump

* block table import for server lock
2022-07-25 18:02:14 -07:00
James Cor 4f7300fec0 merging with main 2022-07-25 14:31:14 -07:00
Dhruv Sringari 47f2f324f2 Fix for persisted database specific system variables failing to load (#3905)
* Fix for persisted database specific system variables failing to load

* Re-added missed line

* adding bats for global config

* fix bats

* pr comments
2022-07-25 10:42:16 -07:00
James Cor 24b2964904 Merge branch 'main' into james/users 2022-07-22 14:45:00 -07:00
Dhruv Sringari 72055b9548 unskip bats that already work and annotate the rest (#3884) 2022-07-21 12:43:14 -07:00
James Cor b7f1d74ac4 this is probably the bad test 2022-07-20 13:18:39 -07:00
James Cor c2f992348a adding tests 2022-07-18 13:27:25 -07:00
James Cor 8b713b0964 missed a user 2022-07-18 12:13:43 -07:00
James Cor 743c9fcfa4 need to add user to sql -q 2022-07-18 10:51:19 -07:00
James Cor 278b2b3ebb merge with main 2022-07-12 16:02:49 -07:00
Brian Hendriks eaf0312c3f test fix 2022-07-12 13:35:27 -07:00
Brian Hendriks 82e3ce1be5 debug 2022-07-11 17:43:10 -07:00
Brian Hendriks fdb5104efe Support per user session variables in the server config 2022-07-11 15:26:38 -07:00
James Cor 6b5ee5f5d3 merge with main 2022-07-05 21:37:15 -07:00
Maximilian Hoffman cf2812f20e CLI write commands server-locked (#3755)
* [no-release-notes] broken arm release

* CLI write commands server-locked

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* abs path

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-07-05 16:30:40 -07:00
James Cor 2baa661785 Merge branch 'main' into james/local-user 2022-07-05 14:57:54 -07:00
Maximilian Hoffman d5ec4382a6 Only rebase transaction start for read replica (#3722)
* Only rebase transaction start for read replica

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* missed var names

* another var name

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* server lock file

* put serverLockFile in dsess

* better multiEnv locking

* more doc comments

* zach's comments

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-07-01 17:02:09 -07:00
Dhruv Sringari 24cac1f6c4 [no-release-notes] unskip more bats (#3737)
* Fix merge test for __DOLT_1__

* tree.ThreeWayMerge always calls callback when key collision occurs

* add keyless support for new format merge and other merge related tables

* newline of doom

* unskip more bats

* empty

* skip blame.bats and remotes-aws.bats
2022-07-01 17:00:42 -07:00
James Cor 461cd9d03f replacing in bats tests as well 2022-06-30 13:55:48 -07:00
Daylon Wilkins 178259995b Unskipped bats tests 2022-06-21 04:03:39 -07:00
jennifersp d9bb364c42 case sensitivity for database and branch names 2022-05-31 21:51:23 -07:00
Zach Musgrave c1d21f1e3a Merge pull request #3455 from dolthub/zachmu/db-drop-panic
[no-release-notes] Additional tests for drop database panic
2022-05-19 08:55:12 -07:00
Zach Musgrave 40c7f67dd0 Merge pull request #3454 from dolthub/zachmu/db-drop-panic
Fixed panic when dropping a database with active branches in use
2022-05-18 21:04:17 -07:00
Zach Musgrave 8934137ebc Added skipped tests for case sensitivity in db connection strings 2022-05-18 19:42:49 -07:00
Zach Musgrave 837a9f6ac8 Added test for dropping a branch-qualified DB 2022-05-18 19:24:55 -07:00
Zach Musgrave 964dfc361b Skipping new test on new format 2022-05-18 19:02:21 -07:00
Zach Musgrave c491e777a0 Fixed panic when dropping a database with active branches in use 2022-05-18 18:17:25 -07:00
Andy Arthur b4ccd71c57 Merge branch 'main' into andy/nbf-gate 2022-05-17 17:11:09 -07:00
Andy Arthur d5bd000790 more BATS skipping for __DOLT_1__ 2022-05-17 11:44:11 -07:00
Maximilian Hoffman 33a679f20b Default branch now database-specific global variable (#3422)
* Default branch now database-specific global variable

* fix bats
2022-05-16 13:21:50 -07:00
Andy Arthur 01587c8c20 more BATS skips for __DOLT_1__ 2022-05-10 14:08:47 -07:00
Dustin Brown ea410bfd02 [auto-bump] [no-release-notes] dependency by jennifersp (#3112) 2022-03-29 11:21:28 -07:00
Andy Arthur e9eeb4764f fixed read-only logic, updated uses of '_head' with '_head_ref' 2022-03-15 15:30:33 -07:00
Andy Arthur c174598cce fix dolt_merge funct, delete dolt squash, dropped manual dolt function tests 2022-03-14 15:37:42 -07:00
Andy Arthur 3bf3cf43c8 unified merge() and dolt_merge(), updated BATS to stage changes before committing, some sql-server tests still failing 2022-03-14 11:46:06 -07:00
jennifersp 94ad6bb78e Retain not null constraint on primary key columns when dropping primary key (#2745) 2022-02-04 15:20:21 -08:00
Zach Musgrave 8a2b4f3766 Additional test for no selected DB 2022-01-25 10:24:41 -08:00
Zach Musgrave d98276eb6d Fleshed out tests of creating tables without a DB selected 2022-01-25 10:02:34 -08:00
Daylon Wilkins 9a38087ee6 Updated GMS and updated interface changes 2022-01-24 06:53:23 -08:00
Aaron Son aa1aed79bc integration-tests/bats/sql-server.bats: Skip mysql CLI test on macOS for now. 2022-01-10 13:22:58 -08:00
Aaron Son 7b2abffcec sql-server: Fix regression: Respect autocommit config.
In the migration to *SqlEngine in 0.34.4 to 0.34.5, the server config's respect
for the default value for autocommit regressed. In 0.34.5 - 0.35.3,
`autocommit` is always turned on by default for incoming connections,
regardless of the setting in the config.yaml file or the flag
`--no-auto-commit` being passed at the command line.
2022-01-10 12:00:15 -08:00
jennifersp fdec0ba82b add mysql client bats test (#2540) 2021-12-27 19:13:15 -08:00
James Cor c4c8ac3c11 Merge pull request #2443 from dolthub/james/fix-2442-read-only-flag-test
stop ignoring read_only flag
2021-12-07 14:29:53 -08:00
James Cor f7998428b4 more tests 2021-12-07 13:30:02 -08:00
Aaron Son c79663a6e8 integration-tests/bats/sql-server.bats: Update multi statement test to assert that the behavior works. 2021-12-07 10:02:37 -08:00
Aaron Son daf2d26bcb go/cmd/dolt: commands/sqlserver: Add configuration for disabling MULTI_STATEMENTS support on the server.
Currently sql-server parses some MULTI_STATEMENTS incorrectly, in particular
statements that include substatements get split up incorrectly. This adds
server configuration for the yaml config, so that multi-statement handling can
be disabled server-side. This will allow things like CREATE TRIGGERs submitted
with a client that advertises MULTI_STATEMENTS support to work correctly with
Dolt sql-server. However, if the client actually sends a multi-statement in
this mode, even two SELECTs separated by a ';', for example, while the server
is running in this mode, it will not work.

To enable, place:

```yaml
behavior:
  disable_client_multi_statements: false
```

in the config.yaml for the server.
2021-12-01 15:55:06 -08:00
James Cor 445058471a a change 2021-12-01 13:25:36 -08:00