Add DBVersion #1723
No reviewers
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1723
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "lunny/version"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -786,4 +786,2 @@
}
// Table table struct
type Table struct {
this rm looks unrelated
Yes, this is unused codes.
from CI:
9.5.22 on x86_64-pc-linux-gnu (Debian 9.5.22-1.pgdg90+1), compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit
3.31.1
5.7.29
Microsoft SQL Server 2017 (RTM-CU13) (KB4466404) - 14.0.3048.4 (X64) Nov 30 2018 12:57:58 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Linux (Ubuntu 16.04.5 LTS)
5.7.25-TiDB-v3.0.3
CockroachDB CCL v19.2.4 (x86_64-unknown-linux-gnu, built
I dont know if it should return the full string or only the real version number ...
It's difficult to parse? ?
I'll thought about it ... but in the end I think the user has to parse this itself because we cant realy tell what exat info he like to have ...
on MSSQL for example, he might like to get the patch number (KB4466404) or just the name of the "generel" version (Microsoft SQL Server 2017) ...
so for me I come to the conclusion that this output should be ok
Ping
I think we should parse it on xorm layer. So that we should get the version like this.
babca38d2d
toee8327d364
rows.go:13:2: xorm.io/builder@v0.3.8: Get "https://goproxy.io/xorm.io/builder/@v/v0.3.8.zip": read tcp 172.19.0.3:49170->119.28.201.50:443: read: connection reset by peer
make: *** [Makefile:151: test-mssql] Error 1
7bc6fe5165
to47710175c6
7ecc85926b
to6d24d15e11
6d24d15e11
toe76b98c444
@ -191,0 +204,4 @@
return nil, err
}
if strings.HasPrefix(version, "TiDB:") {
make sure with regex, strings.Split do have 3 items or we could get out of range exeptions
and use it to make sure its TiDB in the same time :)
The rule is simple, three fields with
-
. So I don't think we need regex here.e76b98c444
toedb5cdc2bb
ff0e803343
toc8144bd716