Created
June 24, 2025 22:54
-
-
Save aleclarson/5f3ea45dfff51e15fe3816141a525ec8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/alias.js b/alias.js | |
| index a2e9dddc6b19e5668d23b2b25a0718ee2a201c37..6d21587b4e771ffb406d6193d381076bc5c5f229 100644 | |
| --- a/alias.js | |
| +++ b/alias.js | |
| @@ -98,7 +98,7 @@ function mapColumnsInSQLToAlias(query, alias) { | |
| return mapColumnsInAliasedSQLToAlias(c, alias); | |
| } | |
| return c; | |
| - })); | |
| + })).mapWith(query.decoder); | |
| } | |
| export { | |
| ColumnAliasProxyHandler, |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
⚡ Apply Remote Git Patch with
patch-packagein One CommandPrerequisites
You have
patch-packageinstalled:npm install patch-package --save-devYou have
curlorwgetavailable in your system.The target package (e.g.,
drizzle-orm) is already installed in yournode_modules.One-liner Command to Apply the Patch
curl -sSL https://gist.githubusercontent.com/aleclarson/5f3ea45dfff51e15fe3816141a525ec8/raw/84bbe33fc0161a5b66fa69e8879fb7406d4514e0/drizzle-pr-1694.patch -o patches/drizzle-orm+0.30.0.patchExplanation
drizzle-orm+0.30.0.patchwith the correct patch filename for your installed package version. The format is:<package-name>+<version>.patchYou can find the exact version by running:
npm ls drizzle-ormThe
patchesfolder is wherepatch-packageexpects patches to live by default.Full Example in One Terminal Line
If your project uses
[email protected], run:mkdir -p patches && curl -sSL https://gist.githubusercontent.com/aleclarson/5f3ea45dfff51e15fe3816141a525ec8/raw/84bbe33fc0161a5b66fa69e8879fb7406d4514e0/drizzle-pr-1694.patch -o patches/drizzle-orm+0.30.0.patchThen ensure your
postinstallscript inpackage.jsonincludes:"scripts": { "postinstall": "patch-package" }So the patch applies automatically after installs.
✅ Alternative with PNPM Patcher (
pnpm patch)If you prefer PNPM's patching system:
pnpm patch drizzle-ormThis will open the package in an editable folder. Apply the patch like so:
curl -sSL https://gist.githubusercontent.com/aleclarson/5f3ea45dfff51e15fe3816141a525ec8/raw/84bbe33fc0161a5b66fa69e8879fb7406d4514e0/drizzle-pr-1694.patch | patch -p1Then finalize:
pnpm patch-commit drizzle-orm⚡ Summary One-Liner for
patch-packagemkdir -p patches && curl -sSL <PATCH_URL> -o patches/<package-name>+<version>.patchReplace
<PATCH_URL>,<package-name>, and<version>accordingly.