-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
SELECT N'' AS NVARCHAR not support #462
Comments
This is in response to the change in last patch #422 to force use of Unicode on insert? So this would be another place in the code that needs updating? |
Yes, need to add (N') here one more place to fully support Unicode in MSSQL. |
@achariyeak : Are you sure about this? The requested change does not look right. The header comment just above that function states:
Your proposed change would result in queries containing something like Also, the What exactly are you trying to do that does not seem to be working? What does the "SELECT N'' AS NVARCHAR" in the title refer to? I suppose if you are passing in your own query, and if that query were to use a placeholder prefixed with $query = str_replace( "'%s'", '%s', $query ); // Strip any existing single quotes. being: $query = str_replace( "N'%s'", '%s', $query ); // Strip any existing single quotes prefixed with "N". Of course, this might not be the issue you are having, in which case we can either ignore this potential for the moment, or I can submit a separate PR for it, or maybe something else. Again, please let us know precisely what you are trying to do, and why. Thanks, Solomon.. |
It's now working fine,cause of my database table migration from existing one. |
@achariyeak
Ok, but can you please explain? Were your tables initially set up as |
wp-db.php Line(2219) _insert_replace_helper
// $formats = implode( ', ', $formats );
$formats = implode( ', N', $formats );
The text was updated successfully, but these errors were encountered: