溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

數(shù)據(jù)庫異常——超出列范圍

發(fā)布時(shí)間:2020-08-15 05:54:23 來源:網(wǎng)絡(luò) 閱讀:522 作者:yerikyu 欄目:MySQL數(shù)據(jù)庫

最近遇到的一個(gè)坑,我開發(fā)的項(xiàng)目竟然遇到了字符串過長的坑,先看下日志

9/19/2019 5:27:35 org.springframework.beans.BeanInstantiationException: Failed to instantiate : Constructor threw exception; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute query; SQL [select business0_.id as id119, business0_.b_id as b_id219, business0_.branch as branch419, business0_.description as descript419, business0_.jhi_level as jhi_leve519, business0_.name as name619, business0_.parent_id as parent_i819, business0_.tag as tag719 from business business0_]; nested exception is org.hibernate.exception.DataException: could not execute query
9/19/2019 5:27:35 PMCaused by: java.sql.SQLException: Out of range value for column 'parent_i819' : value
9/19/2019 5:27:35 PM at org.mariadb.jdbc.internal.com.read.resultset.rowprotocol.TextRowProtocol.getInternalLong(TextRowProtocol.java:312)
9/19/2019 5:27:35 PM at org.mariadb.jdbc.internal.com.read.resultset.SelectResultSet.getLong(SelectResultSet.java:1004)
9/19/2019 5:27:35 PM at org.mariadb.jdbc.internal.com.read.resultset.SelectResultSet.getLong(SelectResultSet.java:996)
9/19/2019 5:27:35 PM at com.alibaba.druid.filter.FilterChainImpl.resultSet_getLong(FilterChainImpl.java:1184)
9/19/2019 5:27:35 PM at com.alibaba.druid.filter.FilterAdapter.resultSet_getLong(FilterAdapter.java:1655)
9/19/2019 5:27:35 PM at com.alibaba.druid.filter.FilterChainImpl.resultSet_getLong(FilterChainImpl.java:1180)
9/19/2019 5:27:35 PM at com.alibaba.druid.filter.FilterAdapter.resultSet_getLong(FilterAdapter.java:1655)
9/19/2019 5:27:35 PM at com.alibaba.druid.filter.FilterChainImpl.resultSet_getLong(FilterChainImpl.java:1180)
9/19/2019 5:27:35 PM at org.hibernate.loader.Loader.getRow(Loader.java:1562)
9/19/2019 5:27:35 PM at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:732)
9/19/2019 5:27:35 PM at org.hibernate.loader.Loader.proce***esultSet(Loader.java:991)
9/19/2019 5:27:35 PM at org.hibernate.loader.Loader.doQuery(Loader.java:949)
9/19/2019 5:27:35 PM at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:341)
9/19/2019 5:27:35 PM at org.hibernate.loader.Loader.doList(Loader.java:2692)

日志中說到數(shù)據(jù)庫值過大,看的我一愣一愣的,什么鬼!一個(gè)id居然過大??明明記得我在數(shù)據(jù)庫設(shè)置的字符長度為512??!不管了,面向谷歌運(yùn)維

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI