后Ql无效的盐
我有一张大约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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论