$B5WJ]$5$s(B<div><br></div><div>$BAaB.$N%3%a%s%H$"$j$,$H$&$4$6$$$^$7$?!#(B</div><div><br></div><div>$B:G=i$OA0$N6uGr$O$J$5$=$&$K8+$($?$N$G!"99$K$?$7$F$7$^$$$^$7$?!#(B</div><div>$B:FEY6uGr$r:o$j$^$7$?$i!">e<j$/9T$-$^$7$?!#(B</div><div><br></div><div>$B$*<j?t$r$*$+$1$7$^$7$?!#(B</div><div><br></div><div>$B;VB<(B<br><br><div class="gmail_quote">
2009/03/20 19:28 kubo <span dir="ltr"><<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">$B5WJ]$G$9!#(B<br>
<br>
$B;VB<$5$s!"$3$s$P$s$O(B<br>
<div class="im"><br>
> user_role.loginname = /*pmb.loginname*/ 'mike'<br>
> AND transaction_screen.screen = /*pmb.screen*/ '/example/vdr'<br>
<br>
</div>$B%P%$%s%IJQ?t%3%a%s%H$H%F%9%HCM$N4V$K6uGr!V(B $B!W$,(B<br>
$BF~$C$F$$$k$h$&$K8+$($^$9!#$3$A$i$N6uGr$r:o$C$F(B<br>
$B$b$&0lEY;n$7$FD:$1$J$$$G$7$g$&$+!)(B<br>
<br>
$B!V(B/*pmb.loginname*/ 'mike'$B!W(B<br>
$B"-(B<br>
$B!V(B/*pmb.loginname*/'mike'$B!W(B<br>
<br>
$B!V(B*pmb.screen*/ '/example/vdr'$B!W(B<br>
$B"-(B<br>
$B!V(B*pmb.screen*/'/example/vdr'$B!W(B<br>
<br>
$B$A$J$_$K4pE@%F!<%V%k$N$H$"$k%+%i%`$N(B<br>
Max$BCM$r<hF@$9$k$N$G$"$l$P!"(B<br>
<br>
transactionScreenBhv.scalarSelect(new ScalarQuery<TransactionScreenCB>{<br>
public void query(TransactionScreenCB cb) {<br>
cb.specify().columnLevel();<br>
cb.query()... // $B$=$NB>9J$j9~$_>r7o(B<br>
}<br>
});<br>
<br>
$B$G!"<B8=2DG=$G$9!#(B<br>
dbflute-basic-example$B$N(BBehaviorMiddleTest$B$N(B<br>
test_scalarSelect_max_Tx()$B$K(BExample$B<BAu$"$j$^$9!#(B<br>
<br>
2009/3/20 Masanobu Shimura <<a href="mailto:mikeshimura@gmail.com">mikeshimura@gmail.com</a>>:<br>
<div><div></div><div class="h5">> $B5WJ]$5$s(B<br>
> $B$O$^$C$F$7$^$C$?$N$G!"65$($F2<$5$$!#(B<br>
> $B$J$*(B SQL$BJ8$r2<5-$K=$@5$9$l$PDL$j$^$9$N$G!"5^$$$G$O$$$^$;$s$,!#(B<br>
> $B$^$?(B /*IF$B!!$K$7$F$bF1MM$G!"JQ2=$"$j$^$;$s!#(B<br>
> dbflute runtime 0.9.3$B!"(BS2 2.4.33 $B$G!"(B dbflute-basic-example$B$O!"(BERROR$B$J$/DL$j$^$9!#(B<br>
> $B;VB<(B<br>
><br>
> $BDL$k(B SQL$BJ8(B<br>
> WHERE<br>
> user_role.loginname = /*pmb.loginname*/<br>
> AND transaction_screen.screen = /*pmb.screen*/<br>
><br>
> ERROR$B!!30$@$7!!(BSQL$BJ8(B<br>
> -- !SelectLevelPmb!<br>
> -- !!String loginname!!<br>
> -- !!String screen!!<br>
> SELECT<br>
> MAX(LEVEL)<br>
> FROM<br>
> transaction_screen<br>
> JOIN tran_role<br>
> ON transaction_screen.transaction = tran_role.transaction<br>
> JOIN user_role<br>
> ON user_role.role = tran_role.role<br>
> WHERE<br>
> user_role.loginname = /*pmb.loginname*/ 'mike'<br>
> AND transaction_screen.screen = /*pmb.screen*/ '/example/vdr'<br>
> $B<B9T(BLOG<br>
> DEBUG 2009-03-20 17:39:44,519 [main] $BO@M}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!#(Btx=[FormatId=4360,<br>
> GlobalId=1237538384068/0, BranchId=]<br>
> DEBUG 2009-03-20 17:39:44,529 [main]<br>
> -- !SelectLevelPmb!<br>
> -- !!String loginname!!<br>
> -- !!String screen!!<br>
> SELECT<br>
> MAX(LEVEL)<br>
> FROM<br>
> transaction_screen<br>
> JOIN tran_role<br>
> ON transaction_screen.transaction = tran_role.transaction<br>
> JOIN user_role<br>
> ON user_role.role = tran_role.role<br>
> WHERE<br>
> user_role.loginname = 'mike' 'mike'<br>
> AND transaction_screen.screen = '/example/menu' '/example/vdr'<br>
> DEBUG 2009-03-20 17:39:44,627 [main] $BO@M}E*$J%3%M%/%7%g%s$rJD$8$^$7$?!#(Btx=[FormatId=4360,<br>
> GlobalId=1237538384068/0, BranchId=]<br>
> DEBUG 2009-03-20 17:39:44,627 [main] END<br>
> org.seasar.ef.example.agile.logic.TransactionLogic#GetLevel(mike,<br>
> /example/menu) Throwable:org.seasar.dbflute.exception.SQLFailureException:<br>
> Look! Read the message below.<br>
> /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br>
> The SQL failed to execute!<br>
> [Advice]<br>
> Please confirm the SQLException message.<br>
> [SQLState]<br>
> 42601<br>
> [ErrorCode]<br>
> 0<br>
> [SQLException]<br>
> org.seasar.framework.exception.SSQLException<br>
> [ESSR0072]SQL$B$GNc30(B(SQL=[-- !SelectLevelPmb!<br>
> -- !!String loginname!!<br>
> -- !!String screen!!<br>
> SELECT<br>
> MAX(LEVEL)<br>
> FROM<br>
> transaction_screen<br>
> JOIN tran_role<br>
> ON transaction_screen.transaction = tran_role.transaction<br>
> JOIN user_role<br>
> ON user_role.role = tran_role.role<br>
> WHERE<br>
> user_role.loginname = ? 'mike'<br>
> AND transaction_screen.screen = ? '/example/vdr'], Message=[0],<br>
> ErrorCode=42601, SQLState={3})$B$,H/@8$7$^$7$?(B<br>
> [NextException]<br>
> org.postgresql.util.PSQLException<br>
> ERROR: syntax error at or near "'mike'"<br>
> [Behavior]<br>
> TranRoleBhv.outsideSql().selectList()<br>
> [OutsideSql]<br>
> org/seasar/ef/example/agile/dbflute/exbhv/TranRoleBhv_selectLevel.sql<br>
> [ParameterBean]<br>
> org.seasar.ef.example.agile.dbflute.exbhv.pmbean.SelectLevelPmb<br>
> {mike,/example/menu}<br>
> [Statement]<br>
> org.seasar.extension.jdbc.impl.PreparedStatementWrapper<br>
> [Display SQL]<br>
> -- !SelectLevelPmb!<br>
> -- !!String loginname!!<br>
> -- !!String screen!!<br>
> SELECT<br>
> MAX(LEVEL)<br>
> FROM<br>
> transaction_screen<br>
> JOIN tran_role<br>
> ON transaction_screen.transaction = tran_role.transaction<br>
> JOIN user_role<br>
> ON user_role.role = tran_role.role<br>
> WHERE<br>
> user_role.loginname = 'mike' 'mike'<br>
> AND transaction_screen.screen = '/example/menu' '/example/vdr'<br>
> * * * * * * * * * */<br>
> DEBUG 2009-03-20 17:39:44,640 [main] $B%H%i%s%6%/%7%g%s$r%m!<%k%P%C%/$7$^$7$?!#(Btx=[FormatId=4360,<br>
> GlobalId=1237538384068/0, BranchId=]<br>
</div></div>> _______________________________________________<br>
> Seasar-user mailing list<br>
> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
><br>
><br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</blockquote></div><br></div>