DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
dbtng
Multi-table update in D6 to DBTNG
July 30, 2011 - 1:40pm — Anonymous
UPDATE
{
node
}
n
INNER
JOIN
{
classified_node
}
cn
ON
n
.
nid
=
cn
.
nid
SET
n
.
STATUS
=
0
,
cn
.
notify
=
0
WHERE
n
.
type
=
'classified'
AND
n
.
STATUS
=
1
AND
cn
.
expires
<
%s
dbtng
KISS, chx, KISS!
February 28, 2010 - 3:47pm —
sun
Index: includes/database/mysql/schema.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database/mysql/schema.inc,v
retrieving revision
1
chx
dbtng
hack
Read more
Fix for Fix for DBTNG extenders
June 17, 2009 - 8:33am — Anonymous
// THIS DOESN'T WORK
$query
= db_select
(
'system'
,
's'
)
;
$query
-
>
fields
(
's'
,
array
(
'name'
,
'type'
)
;
$query
-
>
condition
(
'status'
,
'1'
)
;
$query
-
>
extend
(
'PagerDefault'
)
;
$query
-
>
limit
(
'10'
)
;
// <
dbtng
extenders
Read more
Fix for DBTNG extenders
June 11, 2009 - 5:07pm — Anonymous
// THIS DOESN'T WORK
$query
= db_select
(
'system'
,
's'
)
;
$query
-
>
fields
(
's'
,
array
(
'name'
,
'type'
)
;
$query
-
>
condition
(
'status'
,
'1'
)
;
$query
-
>
extend
(
'PagerDefault'
)
;
$query
-
>
limit
(
'10'
)
;
// <
dbtng
extenders
Read more
DBTNG extenders
June 11, 2009 - 5:07pm — Anonymous
// THIS DOESN'T WORK
$query
= db_select
(
'system'
,
's'
)
;
$query
-
>
fields
(
's'
,
array
(
'name'
,
'type'
)
;
$query
-
>
condition
(
'status'
,
'1'
)
;
$query
-
>
extend
(
'PagerDefault);
$query->limit('
10
'); // <-
dbtng
extenders
Read more
Can't figure out what the problem is with this database call?
March 7, 2009 - 1:20pm — Anonymous
return
db_select
(
'taxonomy_term_data'
,
't'
)
-
>
addField
(
't'
,
'tid'
)
-
>
addField
(
't'
,
'vid'
)
-
>
addField
(
't'
,
'name'
)
-
>
addField
(
't'
,
'description'
)
-
>
addField
(
't'
,
'weight'
)
dbtng
Read more
tablesort sql test
February 20, 2009 - 4:12pm — Anonymous
function
testTableSortQuery
(
)
{
// To keep the test from being too brittle, we determine up front
// what the page count should be dynamically, and pass the control
dbtng
tablesort
test
Read more