Code Monkey home page Code Monkey logo

Comments (5)

shueybubbles avatar shueybubbles commented on July 23, 2024

is this on Windows, Linux, or both?
I don't see it on my Windows run.

from go-sqlcmd.

arvindshmicrosoft avatar arvindshmicrosoft commented on July 23, 2024

OS Name Microsoft Windows Server 2019 Datacenter
Version 10.0.17763 Build 17763

Code from this repo (commit hash 32462b7) built using go build .\cmd\sqlcmd\

from go-sqlcmd.

arvindshmicrosoft avatar arvindshmicrosoft commented on July 23, 2024

is this on Windows, Linux, or both? I don't see it on my Windows run.

@shueybubbles the issue only reproduces if you have the batch separators (GO) with go-sqlcmd. In classic sqlcmd, the presence (or lack thereof) of the batch separator does not matter - a non-query statement will not print any extra newlines in the output in the classic sqlcmd.

from go-sqlcmd.

shueybubbles avatar shueybubbles commented on July 23, 2024

@arvindshmicrosoft do you still see this?

This is what I get:

E:\git\go-sqlcmd\cmd\sqlcmd>type testdata\create100db.sql
create database db100
go

create database db101
go

create database db102
go
create database db103
go
create database db104
go
create database db105
go
create database db106
go
create database db107
go
create database db108
go
create database db109
go
create database db110
go
create database db111
go
create database db112
go
create database db113
go

E:\git\go-sqlcmd\cmd\sqlcmd>sqlcmd -i testdata/create100db.sql

E:\git\go-sqlcmd\cmd\sqlcmd>sqlcmd
1> select name from sys.databases
2> go
name
--------------------------------------------------------------------------------------------------------------------------------
master
tempdb
model
msdb
mydb
db100
db101
db102
db103
db104
db105
db106
db107
db108
db109
db110
db111
db112
db113

(19 rows affected)

from go-sqlcmd.

arvindshmicrosoft avatar arvindshmicrosoft commented on July 23, 2024

@shueybubbles I built with commit hash 1b77558 and I cannot reproduce the issue any more. Thanks for following up, I am closing the issue.

from go-sqlcmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.