GeezerVison is showing github.com — Comparing v0.1.13...v0.1.16 · jwcraig/sql-server-cli
Permalink
base repository:
jwcraig/sql-server-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
base:
v0.1.13
head repository:
jwcraig/sql-server-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
compare:
v0.1.16
-
11
commits
-
37
files changed
-
2
contributors
Commits on May 17, 2026
-
Configuration menu
Browse the repository at this point in the history
Commits on Jun 28, 2026
-
Configuration menu
Browse the repository at this point in the history
Commits on Jul 28, 2026
-
feat(admin): make maintenance SQL outcomes observable
admin sql printed nothing on success, so a completed DROP DATABASE and a
command that never ran produced identical output. Callers scripting drops
had to issue a separate sys.databases read-back to learn what happened.
- always print an Execution summary (Status, Batches, ResultSets,
RowsReturned, ElapsedMs) for admin execute paths; sql prints it when a
script returns no result sets, leaving SELECT output unchanged
- split admin sql on GO, which previously went to the server as one query
- record per-batch outcomes and keep them when a batch fails, so a run
that stops halfway reports which batches already applied
- add --verify <SQL> and --expect-rows <N> to run a read-back on the same
connection and fail on a row-count mismatch
- word failures so a failed batch is never read as a rollback: statements
before the failing one in that batch have committed, reported in text
and as partialEffectPossible in JSON
- silence duplicate tiberius token-error logs at default verbosity; the
driver line repeated sscli's own error above the summary, and -v or
RUST_LOG restores it
Per-statement granularity and rows-affected counts stay out of reach:
tiberius 0.12 drops DONE and INFO tokens before sscli sees them.
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
fix(admin): build SQL Server restore paths without the host separator
restore_file_path used PathBuf::join, which applies the separator of the
machine sscli runs on. SQL Server routinely runs on a different OS, so
building the POSIX data directory /var/opt/mssql/data from Windows emitted
MOVE N'WDM' TO N'/var/opt/mssql/data\WDM.mdf' and produced an unusable
RESTORE statement.
Join on the separator the directory already uses instead. This is the
failure that has kept the windows-latest CI job red since 2026-06-28.
Configuration menu
Browse the repository at this point in the history
-
ci: gate the release on the test suite
release.yml validated only that the tag matched Cargo.toml, so pushing a tag
published over failing tests. v0.1.14 shipped that way: windows-latest had
been red since 2026-06-28 over a genuine PathBuf::join defect in admin, and
nothing in the release path could report it.
Run cargo test/clippy/fmt on ubuntu, macos and windows before build, so a
red check blocks publication instead of merely recording it.
Configuration menu
Browse the repository at this point in the history
Commits on Oct 9, 2026
-
fix(sql): run GO scripts like sqlcmd -b and reject unknown profiles
Scripts:
- Each GO batch without parameters now goes to the server as a plain SQL
batch instead of through sp_executesql. Transactions, SET options, USE and
#temp tables carry across batches on the one session, so a script that
opens a transaction in one batch and commits in a later one no longer
fails with error 266. Applies to sql --file/--stdin and admin sql.
- A GO line that continues a multi-line string or bracketed identifier is
data, not a separator.
- The first failing batch stops the script and the error names it
("Batch 3 of 5 failed: ..."); closing the session rolls back an open
transaction, as with sqlcmd -b.
Config:
- A profile named by --profile, SQL_SERVER_PROFILE or defaultProfile that
the config does not define is an error listing the available profiles,
instead of silently targeting localhost:1433/master.
- Commands warn on stderr when nothing names a server and the built-in
localhost default is used.
- The sql/admin Target banner names the profile and config file.
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
fix: keep compare connection labels and init free of profile lookup
- compare: --source/--target is only a label when a connection string is
given, so it is not resolved as a profile.
- init: use default output settings instead of resolving a profile that
the new config has not defined yet.
- sql: bind parameters whenever a batch references one, including a
parameter named like its placeholder; prefix errors with the batch only
for multi-batch scripts.
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.1.13...v0.1.16
Uh oh!
There was an error while loading. Please reload this page.
|