MSSQL Sync2 reports incorrect db struct types for self-generated tables #1782
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1782
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Gitea uses
engine.Dialect().SetParams(map[string]string{"DEFAULT_VARCHAR": "nvarchar"})
meaning that its tables, (created with Sync2) will be set to nvarchar.The example table User:
Will cause Sync2 when ran twice to report:
The following patch adjusts the TestSyncTable unit test to replicate the problem.
Applying the following patch and set
TEST_MSSQL_DEFAULT_VARCHAR=nvarchar
then runmake test-mssql
:Actually I've just noticed that schemas.Text, MediumText etc. should use defaultVarchar not schemas.Varchar