Skip to content

Commit 05982b9

Browse files
docs: add CHANGELOG.md with release notes for round-out features
1 parent 24475d5 commit 05982b9

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [Unreleased]
6+
7+
### Added
8+
- `:HELP` command to display available sqlcmd commands
9+
- `-p` flag for printing performance statistics after each batch
10+
- `-j` flag for printing raw error messages without formatting
11+
- `:PERFTRACE` command to redirect timing output to file
12+
- `:SERVERLIST` command to list available SQL Server instances on the network
13+
- Multi-line `EXIT(query)` support in interactive mode - queries with unbalanced parentheses now prompt for continuation
14+
15+
### Fixed
16+
- Statistics format (`-p` flag) now matches ODBC sqlcmd output format
17+
- Panic on empty args slice in command parser
18+
19+
### Changed
20+
- **Breaking for go-sqlcmd users**: `-u` (Unicode output) no longer writes a UTF-16LE BOM (Byte Order Mark) to output files. This change aligns go-sqlcmd with ODBC sqlcmd behavior, which never wrote a BOM. If your workflows depended on the BOM being present, you may need to adjust them.
21+
22+
## Notes on ODBC sqlcmd Compatibility
23+
24+
This release significantly improves compatibility with the original ODBC-based sqlcmd:
25+
26+
| Feature | Previous go-sqlcmd | Now | ODBC sqlcmd |
27+
|---------|-------------------|-----|-------------|
28+
| `-u` output BOM | Wrote BOM | No BOM | No BOM ✓ |
29+
| `-p` statistics format | Different format | Matches | Matches ✓ |
30+
| `-r` without argument | Required argument | Defaults to 0 | Defaults to 0 ✓ |
31+
| `EXIT(query)` multi-line | Not supported | Supported | Supported ✓ |
32+
| `:HELP` command | Not available | Available | Available ✓ |
33+
| `:SERVERLIST` command | Not available | Available | Available ✓ |

0 commit comments

Comments
 (0)