That still isn't very discoverable. You would think there would just be a Comments button on the left along with Answers Tags Badges etc, but no, Someone needs to go back to UX school.
Any GitHub expert know why it shows diffs where there are no diffs?
I've used both manually cloned version and the Edit button in the GUI. The manually cloned repo doesn't show these changes on commit, only when Pull Request is created
My guess was encoding or different line ends. But no warning from SQL prompt on different line endings and for encoding it seems too random
@Zikato Yea that's what I was about to suggest or for some reason different whitespace characters? Could throw both into Notepad++ or something and turn on the Show All Characters to double check. Weird.
GitHub's diff is garbage, given it's based on the standard file-based diff command. We need a diff tool that actually understands syntax, so it can ignore insignificant whitespace, and insignificant reordering of declarative syntax.
The amount of times I'm looking through diffs of XML and I realize the only changes are attribute="value"</tag> and attribute="value" </tag>
Whitespace is an esoteric programming language developed by Edwin Brady and Chris Morris at the University of Durham (also developers of the Kaya and Idris programming languages). It was released on 1 April 2003 (April Fool's Day). Its name is a reference to whitespace characters. Unlike most programming languages, which ignore or assign little meaning to most whitespace characters, the Whitespace interpreter ignores any non-whitespace characters. Only spaces, tabs and linefeeds have meaning.A consequence of this property is that a Whitespace program can easily be contained within the whitespace...
Adam: I'm pretty sure the whitespace issues are due to Windows-style line endings. I flipped the proc over to Linux-style during the last release cycle but maybe it's not consistent.
> The reason I post everything publicly is so that you can answer your own questions for stuff like this. I don’t even require an existing database to test – the script creates a new database for you. Please stop asking me to do additional work here and on LinkedIn – the idea of this post is so that you can do your own testing. Thanks for understanding.
@HannahVernon I was hit up yesterday to look at why SQL Server wasn't shutting down, said it just say there for 4 hours doing nothing but won't shutdown. Sounded familiar. Guess what I found on one of the threads.... isitservicebroker.com
If you create a trigger on master for the event ALTER_DATABASE, which contains the statement WHILE (1=1) WAITFOR DELAY 23:00:00; and you execute an ALTER DATABASE, will all other possible DDL and DML statements on that database get held up with a Sch-M lock? Asking for a friend...
== English ==
=== Pronunciation ===
=== Phrase ===
asking for a friend
(idiomatic, humorous) Indicates that a question is embarrassing by pretending to be asking on behalf of another person.
2016, "Celebrities React to Presidential Town Hall Debate 2016", Just Jared (Oct 9, 2016):
How many more of these #debates do we have to suffer through? Asking for a friend. — Eva Amurri Martino (@TheHappilyEva)
2018, "Lakers survive Ball's gaffe to beat Thunder in OT". — LeBron James (@KingJames)
"So what really is "in the shooting motion" rule?!?!?" James wrote on Twitter. "Asking for a friend...
pertinent to the sp_whoisactive discussion earlier, does anyone know how to configure github so that on commit or merge, some action runs to clean files? ideally looking to normalize line endings, replace tabs with spaces, and probably clean up trailing white space on new lines.
yeah but in Azure DevOps, not GitHub Actions. And there are several tiers - you can set the line endings with .gitattributes. Replace tabs with spaces and trailing ws would be a powershell either in githook or in the GitHub workflow
@ErikDarling True, definitely still room to make them a performance bottleneck even with single statement TVFs. E.g. I'm doing one right now that references a recursive CTE that's a little iffy at the moment.
😆 obtuse is subjective if we aren't talking triangles.
I think I might've found a bug with RLS. Seems like if you reference an object that has an RLS predicate against it, inside of a different TVF used for a separate RLS predicate and policy, that second policy doesn't get applied.
Will probs post a question when I get a chance to create a clean set of repro scripts.
@J.D. I don't use it, but seen enough to know it isn't really a security feature, more of a convenience for querying the correct rows without having to add extra code.
Don't expect it to stand up to someone with permission to write raw SQL queries, or to able to accurately time query performance. There are loads of side-channel attacks.
@SeanGallardy The real bugbear is that it has side-channel attacks even with indirect webserver calls to parameterized queries. Then again, I often see login pages with no side-channel protection for index lookups on usernames and password hashes, so it's the least of our worries.
@Charlieface Fo' sho'. Even worse, I've worked with databases that stored logins with plaintext passwords in a field called Password lol. And there were some higher level credentials that really shouldn't've been stored in there. (Fortunately not where I'm at these days.)
@J.D. And here I am today trying to make head or tail of AWS authentication procedure, which uses SHA256 hashing no less than 6 times one after the other, to no apparent reason.
@Charlieface To try to be succinct: 1. Create an RLS predicate on a TVF on a Table. 2. Create a View on that Table. 3. Create a separate RLS policy and predicate on the View using a separate TVF that selects from that Table with a WHERE clause. 4. When selecting from the View, I noticed that WHERE clause in that second RLS predicate's TVF isn't being applied.
On a completely unrelated topic, is there a way to actually stop automatic restarts from Windows updates in Windows 11? I legit had it restart 5 days in 1 week for updates lol.
TL;DR: Can we use STRING_AGG aggregate function in a query using GROUP BY ROLLUP(...)?
I am converting old code that used the STUFF( (SELECT...FOR XML) ) approach, so that it uses STRING_AGG instead.
I cannot seem to use STRING_AGG when using ROLLUP, as I get the error
Aggregate functions that ...
@Charlieface Haha what Erik said, unless it's super interesting and has more to do with the OS side. I would venture a guess of "someone didn't program it in"
I use two editors, notepad and VS. Never have any issues with tabs. I could see if you're using 50 different editors but also then you're doing it wrong :D