From: Michael D. <mik...@us...> - 2004-08-25 03:56:05
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Dialect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6186/NHibernate/Dialect Modified Files: Dialect.cs MsSql2000Dialect.cs Log Message: Added code to deal with MaxBinaryBlobSize and MaxStringClobSize. Index: Dialect.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Dialect/Dialect.cs,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** Dialect.cs 19 Aug 2004 17:45:24 -0000 1.37 --- Dialect.cs 25 Aug 2004 03:55:56 -0000 1.38 *************** *** 508,515 **** /// <remarks> /// <para> - /// Setting the value to 0 indicates that there is no Maximum Size or that it - /// does not need to be set to Prepare the IDbCommand. - /// </para> - /// <para> /// Currently the only Driver that needs to worry about setting the Param size /// is MsSql --- 508,511 ---- *************** *** 518,533 **** public virtual int MaxAnsiStringSize { ! get { throw new NotImplementedException("should be implemented by subclass - this will be converted to abstract"); } } /// <summary> /// The largest value that can be set in IDbDataParameter.Size for a parameter ! /// that contains a Binary. /// </summary> /// <remarks> /// <para> ! /// Setting the value to 0 indicates that there is no Maximum Size or that it ! /// does not need to be set to Prepare the IDbCommand. /// </para> /// <para> /// Currently the only Driver that needs to worry about setting the Param size --- 514,540 ---- public virtual int MaxAnsiStringSize { ! get { throw new NotImplementedException("should be implemented by subclass if needed."); } } /// <summary> /// The largest value that can be set in IDbDataParameter.Size for a parameter ! /// that contains a DbType.Binary value. /// </summary> /// <remarks> /// <para> ! /// Currently the only Driver that needs to worry about setting the Param size ! /// is MsSql /// </para> + /// </remarks> + public virtual int MaxBinarySize + { + get { throw new NotImplementedException("should be implemented by subclass if needed."); } + } + + /// <summary> + /// The largest value that can be set in IDbDataParameter.Size for a parameter + /// that contains a DbType.Binary value that is written to a BLOB column. + /// </summary> + /// <remarks> /// <para> /// Currently the only Driver that needs to worry about setting the Param size *************** *** 535,546 **** /// </para> /// </remarks> ! public virtual int MaxBinarySize { ! get { throw new NotImplementedException("should be implemented by subclass - this will be converted to abstract"); } } /// <summary> /// The largest value that can be set in IDbDataParameter.Size for a parameter ! /// that contains an Unicode String. /// </summary> /// <remarks> --- 542,568 ---- /// </para> /// </remarks> ! public virtual int MaxBinaryBlobSize { ! get { throw new NotImplementedException("should be implemented by subclass if needed."); } } /// <summary> /// The largest value that can be set in IDbDataParameter.Size for a parameter ! /// that contains a Unicode String value that is written to a CLOB column. ! /// </summary> ! /// <remarks> ! /// <para> ! /// Currently the only Driver that needs to worry about setting the Param size ! /// is MsSql. ! /// </para> ! /// </remarks> ! public virtual int MaxStringClobSize ! { ! get { throw new NotImplementedException("should be implemented by subclass if needed."); } ! } ! ! /// <summary> ! /// The largest value that can be set in IDbDataParameter.Size for a parameter ! /// that contains an Unicode String value. /// </summary> /// <remarks> Index: MsSql2000Dialect.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Dialect/MsSql2000Dialect.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** MsSql2000Dialect.cs 19 Aug 2004 17:45:25 -0000 1.16 --- MsSql2000Dialect.cs 25 Aug 2004 03:55:56 -0000 1.17 *************** *** 120,126 **** --- 120,136 ---- } + public override int MaxBinaryBlobSize + { + get { return 2147483647; } + } + public override int MaxBinarySize { get { return 8000; } + } + + public override int MaxStringClobSize + { + get { return 1073741823; } } |