后Ql无效的盐

发布于 2025-02-02 17:14:59 字数 458 浏览 2 评论 0原文

我有一张大约6,000个记录的桌子。每个记录都包含一个名为user_name的列,其值为地下室生成的哈希。

当我运行此SQL时:

select entity_id from mytable where user_name = crypt('tdriver', user_name) and last_name = 'Test';

我会得到此结果: entity_id = 33,这是正确的。

当我运行此SQL时:

select entity_id from mytable where user_name = crypt('tdriver', user_name);

我得到此结果

错误:无效的盐

我正在使用PostgreSQL 13。我的猜测是PostgreSQL已损坏,我需要重新安装它。

I have a table with about 6,000 records. Each record includes a column named user_name whose value is a crypt generated hash.

When I run this sql:

select entity_id from mytable where user_name = crypt('tdriver', user_name) and last_name = 'Test';

I get this result:
entity_id = 33, which is correct.

When I run this sql:

select entity_id from mytable where user_name = crypt('tdriver', user_name);

I get this result

ERROR: invalid salt

I am using Postgresql 13. My guess is that Postgresql is corrupted and I will need to reinstall it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文