Closed (fixed)
Project:
Drupal driver for SQL Server and SQL Azure
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2011 at 09:05 UTC
Updated:
19 Apr 2011 at 11:36 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedThis is actually a regression introduced by our removal of filtered indexes.
It seems that this computed column:
Results in the [uri] column being *first* truncated to 16 characters, and then hashed. In other words, it's equivalent to:
I don't know the implicit cast rules of SQL Server, but it really feels like a bug to me that the final type is carried into hashbytes() arguments, as this is a very destructive function. (@Ashay, if you want to look into this :p)
Anyway, casting explicitly to
varbinary(max)prevents this behavior. Patch attached for review.Comment #2
damien tournoud commentedCommitted to HEAD.
Comment #4
henneman commentedSubscribe