Title: Incorrect parsing of default sysdatetime() function · Issue #177 · dalibo/sqlserver2pgsql · GitHub
Open Graph Title: Incorrect parsing of default sysdatetime() function · Issue #177 · dalibo/sqlserver2pgsql
X Title: Incorrect parsing of default sysdatetime() function · Issue #177 · dalibo/sqlserver2pgsql
Description: Hi Team, If we have a date time type column with a default value ex: ALTER TABLE [dbo].[AAFILE] ADD CONSTRAINT [DF_AAFILE_created_on] DEFAULT (sysdatetime()) FOR [created_on] The function sysdatetime() gets parsed as is which is not supp...
Open Graph Description: Hi Team, If we have a date time type column with a default value ex: ALTER TABLE [dbo].[AAFILE] ADD CONSTRAINT [DF_AAFILE_created_on] DEFAULT (sysdatetime()) FOR [created_on] The function sysdateti...
X Description: Hi Team, If we have a date time type column with a default value ex: ALTER TABLE [dbo].[AAFILE] ADD CONSTRAINT [DF_AAFILE_created_on] DEFAULT (sysdatetime()) FOR [created_on] The function sysdateti...
Opengraph URL: https://github.com/dalibo/sqlserver2pgsql/issues/177
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect parsing of default sysdatetime() function","articleBody":"Hi Team,\r\nIf we have a date time type column with a default value ex:\r\n\r\n```\r\nALTER TABLE [dbo].[AAFILE] ADD CONSTRAINT [DF_AAFILE_created_on] DEFAULT (sysdatetime()) FOR [created_on]\r\n```\r\nThe function **sysdatetime()** gets parsed as is which is not supported by PG ex: \r\n```\r\nALTER TABLE \"public\".\"aafile\" ALTER COLUMN \"created_on\" SET DEFAULT sysdatetime();\r\n```\r\n\r\nIf we could convert it to **now()**, the PG equivalent, the error can be avoided.\r\n\r\nThank You for your help.","author":{"url":"https://github.com/shubham-yb","@type":"Person","name":"shubham-yb"},"datePublished":"2023-03-28T08:59:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/177/sqlserver2pgsql/issues/177"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:04ff2de6-c571-5b4e-10ea-e3fa1f97b54e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 997A:F9ADA:35BD2A:49C8B0:6977C263 |
| html-safe-nonce | be4fe50c1cbfa18a2e371fa0d93cb028a69f946dd8b0045bf1c40d2d1102104d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTdBOkY5QURBOjM1QkQyQTo0OUM4QjA6Njk3N0MyNjMiLCJ2aXNpdG9yX2lkIjoiOTE0MzM2NzA3MTQ2MTUyNDA2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 95103221f30f9fd9ff5cef80a6ab20d5be6abfa09dcff81d9e5407589fb30e25 |
| hovercard-subject-tag | issue:1643503326 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dalibo/sqlserver2pgsql/177/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e618257f2cfc53abe557094ade3efb3725f91ebc868267c3a69775397693829/dalibo/sqlserver2pgsql/issues/177 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e618257f2cfc53abe557094ade3efb3725f91ebc868267c3a69775397693829/dalibo/sqlserver2pgsql/issues/177 |
| og:image:alt | Hi Team, If we have a date time type column with a default value ex: ALTER TABLE [dbo].[AAFILE] ADD CONSTRAINT [DF_AAFILE_created_on] DEFAULT (sysdatetime()) FOR [created_on] The function sysdateti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shubham-yb |
| hostname | github.com |
| expected-hostname | github.com |
| None | dd7783bd9901db88bac6bc215af7f020bc205a04ebc67e6c7def882ef2859ecd |
| turbo-cache-control | no-preview |
| go-import | github.com/dalibo/sqlserver2pgsql git https://github.com/dalibo/sqlserver2pgsql.git |
| octolytics-dimension-user_id | 182275 |
| octolytics-dimension-user_login | dalibo |
| octolytics-dimension-repository_id | 12059094 |
| octolytics-dimension-repository_nwo | dalibo/sqlserver2pgsql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12059094 |
| octolytics-dimension-repository_network_root_nwo | dalibo/sqlserver2pgsql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5d30081a77a5d66860584073cb38fd98fd7f9388 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width