You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That error is coming from SQL Server. Tedious isn't even doing anything with types in this case. Why it would work elsewhere, I don't know, could have something to do with defaults in other environments.
There is an obvious solution which you've already discovered: just be explicit. In fact, you should really always be explicit via NULL or NOT NULL when defining columns. If you do that, you'll never get bitten by issues like this.
Try the workaround in #230. I think you're running into the same problem I had with temporary table columns being created as non-nullable by default (whereas the ODBC and OLE DB drivers set nullable as the default).
I have the following stored procedure:
and i have the following JS code:
I get the error:
The error is not produced when the field is explicitly set as nullable, however, we have existing code that omits the null on creating temp tables.
When this procedure is executed on SQL Server Management Studio, it runs fine without errors.
The text was updated successfully, but these errors were encountered: