Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYSNAME - system-defined data type in Azure SQL Server #3272

Open
AnielaN994 opened this issue Dec 18, 2024 · 2 comments
Open

SYSNAME - system-defined data type in Azure SQL Server #3272

AnielaN994 opened this issue Dec 18, 2024 · 2 comments

Comments

@AnielaN994
Copy link

Hello,

We have in our schema the system-defined data type SYSNAME used in some maintenance tables and procs and while applying the schema.sql with schema apply, for a database works but for another one we receive: Error: analyzing plan: unsupported type *mssql.SysNameType, not sure why.

Is the SYSNAME supported by atlas ?

Thanks.

@AnielaN994
Copy link
Author

I replicated this with below:

create schema logtest;
go

CREATE TABLE logtest.[ERR_FNR](
[Key] [int] NULL,
[ColumnName] [sysname] NOT NULL
) ON [PRIMARY]
GO

Applying the schema in DB1, it works:
image

while in the other DB2 it fails:

image

@a8m a8m added the MSSQL label Dec 18, 2024
@giautm giautm self-assigned this Dec 19, 2024
@giautm
Copy link
Member

giautm commented Dec 25, 2024

Hello @AnielaN994, I was unable to reproduce this issue, can you share more detail about DB2, like what version of it?

CREATE TABLE [ERR_FNR](
  [Key] [int] NULL,
  [ColumnName] [sysname] NOT NULL
) ON [PRIMARY];
atlas schema apply --to=file://schema.sql --url=docker://sqlserver/2022-latest --dev-url=docker://sqlserver/2022-latest --auto-approve
Screenshot 2024-12-25 at 18 10 52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants