加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – Heroku Blob不存在

发布时间:2020-12-13 15:59:43 所属栏目:百科 来源:网络整理
导读:如果Heroku Postgres不允许使用blob,我应该使用什么来存储二进制数据? 2012-05-30T05:59:36+00:00 app[web.1]: [debug] c.j.b.StatementHandle - create table image_info (2012-05-30T05:59:36+00:00 app[web.1]: id bigint not null,2012-05-30T05:59:36+
如果Heroku Postgres不允许使用blob,我应该使用什么来存储二进制数据?

2012-05-30T05:59:36+00:00 app[web.1]: [debug] c.j.b.StatementHandle - create table image_info (
2012-05-30T05:59:36+00:00 app[web.1]: id                        bigint not null,2012-05-30T05:59:36+00:00 app[web.1]: image_id                  varchar(255),2012-05-30T05:59:36+00:00 app[web.1]: subject_id                varchar(255),2012-05-30T05:59:36+00:00 app[web.1]: web_thumbnail             blob,2012-05-30T05:59:36+00:00 app[web.1]: created_date              timestamp,2012-05-30T05:59:36+00:00 app[web.1]: image                     blob,2012-05-30T05:59:36+00:00 app[web.1]: thumbnail                 blob,2012-05-30T05:59:36+00:00 app[web.1]: constraint pk_image_info primary key (id))
2012-05-30T05:59:36+00:00 app[web.1]: [debug] c.j.b.PreparedStatementHandle - update play_evolutions set last_problem = 'ERROR: type "blob" does not exist
2012-05-30T05:59:36+00:00 app[web.1]:   Position: 176 [ERROR:0,SQLSTATE:42704]' where id = 1

解决方法

使用 bytea,blob不是PostgreSQL数据类型.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读